Answers for "select line from df by name"

2

dataframe get row by name

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

retrieve row by index pandas

rowData = dfObj.loc[ 'b' , : ]
Posted by: Guest on April-20-2020

Python Answers by Framework

Browse Popular Code Answers by Language