I have a Pandas dataframe with a column which contains strings of the form yyyymmdd.
I would like to create a new column with this date format: yyyy-mm-dd
I tried severals operations as: df['Timestamp'] = df['stringdate'].apply(lambda x:datetime.strptime(x, '%Y-%m-%d')) but it does't work: all my data are 1970-01-01
Perhaps use pd.str.extract of pd.str.split but i'm lost.
Thanks a lot Thierry