Sometimes when I loop a panda\'s dataframe the variable in the foorloop refers to the column names of the dataframe, and other times it refers to the rows. Does anyone else