data = [07222020051111, 07222020051058, 07222020051107]
df = pd.DataFrame(data, columns = ['time'])
I am seeking to transform the data in the 'time' column to display as follows:
time
0 2020-07-22 05:11:11
1 2020-07-22 05:10:58
2 2020-07-22 05:11:07
I have tried:
df['time'] = df['time'].dt.strptime('%m-%d-%Y %H:%m:%s')
df['time'] = pd.to_numeric(df['time'])
both without success.
I am very new to this so please excuse if this seems very basic.