I have a dataframe like below
id date
1 [2000-01-01 00:00:00.0, 2018-05-24 13:19:16.987]
2 [2000-01-01 00:00:00.0]
3 [2000-01-01 00:00:00.0, 2017-10-20 08:29:48.8, 2017-10-20 08:29:48.8, 2017-10-20 08:29:48.8]
I am trying to go through and remove the date 2000-01-01 00:00:00.0 from each row.
I have tried doing df['date'] = df['date'].str.lstrip('2000-01-01 00:00:00.0, ') and all I get is every row is NaN
The expected output would be
id date
1 [2018-05-24 13:19:16.987]
2 []
3 [2017-10-20 08:29:48.8, 2017-10-20 08:29:48.8, 2017-10-20 08:29:48.8]
Any help?
Thanks!