Skip to content

Convert dtype='object' time to datetime64 #6708

Answered by keewis
zxdawn asked this question in Q&A
Discussion options

You must be logged in to vote

Usually I'd try using

ds["time"] = ds["time"].astype("datetime64[ns]")

If that does not work, could you post a example I can use to reproduce your issue?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zxdawn
Comment options

Answer selected by zxdawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants