.loc select two index columns code example
Example 1: how to get a row of a dataframe with subset columns in python
df.iloc[1:3, 5:7]
Example 2: retrieve row by index pandas
rowData = dfObj.loc[ 'b' , : ]
df.iloc[1:3, 5:7]
rowData = dfObj.loc[ 'b' , : ]