Very new to Pandas and probably been answered somewhere but I can't seem to find exactly what I'm looking for. Assuming my dataset has this type of structure
Animal |  Age  |  Color  | Length
Cat       1       Brown       50cm
Cat       2       White       60cm
Cat       3       Brown       55cm
Dog       1       White       99cm
Dog       2       White       129cm
Dog       3       White       105cm
How can I most easily transform it to this format where the existing columns are appended horizontally rather than being ordered vertical for a specific animal
Animal |  Age_1  |  Color_1  | Length_1 |  Age_2 | Color_2 | Length_2 | Age_3 | Color_3 | Length_3
Cat       1        Brown       50cm         2       White      60cm       3       Brown      55cm
Dog       1        White       99cm         2       White      129cm      3       White      105cm
Maybe not the best example labels to use, but hopefully gets the point across I greatly appreciate links to answers too.
 
    