Created
November 5, 2021 01:09
-
-
Save ycui1/ef86b51cda9f290f1dedc1650f89d438 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
>>> from datetime import datetime | |
>>> pd.read_csv("custom_dt_fmt.csv", parse_dates=["date"], date_parser=lambda x: datetime.strptime(x, "%b_%d_%Y")) | |
date category balance | |
0 2022-01-01 A 100 | |
1 2022-02-02 B 200 | |
2 2022-03-12 C 300 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment