Ich beginne mit solchen Eingabedaten df1 = pandas.DataFrame( { "Name" : ["Alice", "Bob", "Mallory", "Mallory", "Bob" , "Mallory"] , "City" : ["Seattle", "Seattle", "Portland", "Seattle", "Seattle", "Portland"] } ) Was beim Drucken so aussieht: City Name 0 Seattle Alice 1 Seattle Bob 2...