Forum

Notifications
Clear all

Intermediate Python - loc  

   RSS

0

I have this data

image

When I am trying to print print(df.loc['Net Amount Due From Branches' ]) there is an error 

 

KeyError: 'the label [Net Amount Due From Branches] is not in the [index]'

1 Answer
0

Have you set the index of your dataframe to the column 'Variables' using the set_index() method?

@dl
it still did not work.. thanks

Share:

Delete your account