.loc uses labels to read and write data.
Let's setup a DataFrame:
df = pd.DataFrame({'one': [1, 2, 3, 4, 5],
'two': [6, 7, 8, 9, 10],
}, index=['a', 'b', 'c', 'd', 'e'])
Then we can print the DataFrame to have a look at the shape:
print df
This will o...