Reputation: 1
Code:
pd.to_datetime(dataset['startdate'] ,format="%Y-%m-%d %H:%M:%S%Z")
I got following error
ValueError: time data '2020-02-25 14:56:05+01' does not match format '%Y-%m-%d %H:%M:%S%Z' (match)
help much appreciate.
Upvotes: 0
Views: 80
Reputation: 1
Times series data contains +01 and +02 as well due to daylight saving. That was causing an error. Should be using %z as well
Upvotes: 0