Python, PySpark, Cloud, Unix, SQL
Search This Blog
999_Errors
Errors
AttributeError:
Can only use .dt accessor with datetimelike values
dd['datetime'] = pd.to_datetime(dd.datetime, format='%Y-%m-%d %H:%M:%S')
add above line to the code, to change the date format
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment