In my very large dataframe, I have time in the following minutes:seconds format:
Time Period
6:21 1
8:52 2
15:00 2
...
How can I make it so that the new time column reads only the total number of seconds in the time column?
Time Period Seconds
6:21 1 381
8:52 2 532
15:00 2 900
Further, how could I make it so that the Seconds variable is multiplied by the Period Variable (to display the total number of seconds passed)?
Time Period Seconds TimePassed
6:21 1 381 381
8:52 2 532 1064
15:00 2 900 1800