So I have a a set of csv files of the following general format:
Post_Type Time1 Time2 ... TimeN
Type1 1:12
Type1 2:34
Type1 0:35
Type2 1:11
Type3 5:34
Type3 2:45
And I would like to reformat the data frame to be of the format:
Post_Type Time1 Time2 ... TimeN
Type1 1:12 2:34 0:35
Type2 1:11
Type3 5:34 2:45
Im moving to python from R
so I have a very very limited understanding of what I'm doing do far in term of manipulating these dataframes in python and I cant seem to find any examples of others attempting to do anything like this. Another way of phrasing what I'm doing is attempting to overlay each row of the same type into one row that contains all of the times each corresponding with their original columns. All columns are predefined in the original csv so I do not need to, nor want to create any more columns.