Answers for "locate named rows in DataFrame"

2

dataframe get row by name

row_data = df.loc[ 'a' , : ]
Posted by: Guest on April-03-2020
1

pandas return specific row

df.iloc[1] # replace index integer with specific row number
Posted by: Guest on December-10-2020

Python Answers by Framework

Browse Popular Code Answers by Language