I have the following dataframne:
df
Name Jan Feb Mar
Description
New A 34 32 54
Old B 65 98 05
Retired C 96 26 43
Description is an index column.
I am trying to assign a value to variable as follows:
variable = df[(df['Description']=='Retired') & (df['Name']=='C')]["Jan"]
But i am getting an error:
ValueError: setting an array element with a sequence.
Is there a way to do it?