How to convert a string timestamp to timestamp datatype column? #2294
Unanswered
rushi-jariwala
asked this question in
Q&A
Replies: 2 comments 1 reply
-
@kevinzwang, can you spec out an expression for converting strings and other types into a TimeStamp. Similar to https://pandas.pydata.org/docs/reference/api/pandas.to_datetime.html |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'll be tracking progress on this at #2302 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a timestamp column in string, something like this:
I want to cast this to timestamp column. I am unable to find any documentation on this.
I tried this, but it did not work. Output is None.
df = df.with_column('timestamp1',col('timestamp').cast(DataType.timestamp('us')))
Beta Was this translation helpful? Give feedback.
All reactions