Pivoting a Pandas Dataframe, no numeric types, index is not unique
问题 I am trying to convert some string data into columns, but have had a difficult time utilizing past responses because I do not have a unique index or multi-index that I could use. Sample format index location field value 1 location1 firstName A 2 location1 lastName B 3 location1 dob C 4 location1 email D 5 location1 title E 6 location1 address1 F 7 location1 address2 G 8 location1 address3 H 9 location1 firstName I 10 location1 lastName J 11 location1 dob K 12 location1 email L 13 location1