Technical Trivia
Friday, September 21, 2018
Cast a Pandas dataframe column to timestamp
To cast / convert a column in a Pandas dataframe to the timestamp datatype, do this:
df['timestamp'] = pd.to_datetime(df['timestamp'])
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment