I have a df
with Time
and Date
columns in this specific format.
Time Date
213919 220806
220905 220806
225351 220806
4101 220806
12037 220806
The format of Time
is: hhmmss
The format of Time
is a bit strange, the reading must begin from the end and in order to complete the 6
digits, 0
must be added to the beginning, for example 4101
refers to 00:41:01
, whereas, 12037
refers to 01:20:37
The format of Date
is: yymmdd
I would like to add a new column to my df
, Date_Time
which looks like this:
Time Date Date_Time
213919 220806 06/08/2022 21:39:19
220905 220806 06/08/2022 22:09:05
225351 220806 06/08/2022 22:53:51
4101 220806 06/08/2022 00:41:01
12037 220806 06/08/2022 01:20:37