I am trying to iterate through the rows of my column (item_2) and get rid of the extra spaces each row has. By using " ".join(x.split()) But I get AttributeError: