This may be a trivial question. I have the following dataframe that the columns contain lists.
import pandas as pd
df = pd.DataFrame({'time1': [['2000', '2300'], ['1000', '1100']], 'time2': [['2200', '2400'], ['800', '900']]})
print(df)
time1 time2
0 [2000, 2300] [2200, 2400]
1 [1000, 1100] [800, 900]
The values in of the list represent time intervals. I am trying to convert all these elements into a time format.
I am trying to get something like this:
time1 time2
20:00-23:00 22:00-24:00
10:00-11:00 8:00-9:00