0

I have a panda dataframe:

df
Out[168]: 
            max_speed  shield
cobra               4       2
viper               4       5
sidewinder          7       8

df.loc['cobra' , 'max_speed']
Out[169]: 4

Is there any way to access the same element in the data frame by "column/row number", like

df.loc[0,0]

?

df.loc[0,0] does not work, though.

0 Answers0