pandas acces index by name code example
Example 1: retrieve row by index pandas
rowData = dfObj.loc[ 'b' , : ]
Example 2: indexing column in pandas
In [10]: type(titanic[["Age", "Sex"]])
Out[10]: pandas.core.frame.DataFrame
rowData = dfObj.loc[ 'b' , : ]
In [10]: type(titanic[["Age", "Sex"]])
Out[10]: pandas.core.frame.DataFrame