Created
November 5, 2021 01:23
-
-
Save ycui1/2fe611477cbeaad60c3f5d1e4bf91830 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> pd.to_datetime("Jan 01, 2022") | |
Timestamp('2022-01-01 00:00:00') | |
>>> pd.to_datetime(["01/01/2022", "01/02/2022", "01/03/2022"]) | |
DatetimeIndex(['2022-01-01', '2022-01-02', '2022-01-03'], dtype='datetime64[ns]', freq=None) | |
>>> pd.to_datetime(pd.Series(["01/01/2022", "01/02/2022", "01/03/2022"])) | |
0 2022-01-01 | |
1 2022-01-02 | |
2 2022-01-03 | |
dtype: datetime64[ns] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment