Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
ValueError: Tz-aware datetime.datetime cannot be converted to datetime64 unless utc=True site:stackoverflow.com
joelostblom
Programming language:
Python
2021-06-26 17:09:16
0
Q:
ValueError: Tz-aware datetime.datetime cannot be converted to datetime64 unless utc=True site:stackoverflow.com
BI0SH0CK3D
Code:
Python
2021-07-21 02:23:31
df['DateTime'] = pd.to_datetime(df['DateTime'], utc=True)
1
Tags
error
con
time
date
cannot
true
Related
python datetime to string iso 8601
from string to time python dataframe
Convert the below Series to pandas datetime : DoB = pd.Series(["07Sep59","01Jan55","15Dec47","11Jul42"])
convert str to datetime
python datetime to utc
pd.to_datetime python
New to Communities?
Join the community