Command
df.loc
Explanation
df.loc[] is label-based indexing to select rows and columns.
Examples
Select row with index label 0
df.loc[0]
Select specific cell by row label and column name
df.loc[0, "col1"]
Select multiple columns
df.loc[:, ["col1", "col2"]]