using .loc to index over pandas DataFrames
added snippet of output