pandas select row by index iloc code example
Example 1: retrieve row by index pandas
rowData = dfObj.loc[ 'b' , : ]
Example 2: how to use loc and iloc in pandas
>>> df.iloc[0, 1]
2
rowData = dfObj.loc[ 'b' , : ]
>>> df.iloc[0, 1]
2