Skip to content

Instantly share code, notes, and snippets.

@ycui1
Created November 5, 2021 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ycui1/ba1c94c2acddb1147f054db55c48ef62 to your computer and use it in GitHub Desktop.
Save ycui1/ba1c94c2acddb1147f054db55c48ef62 to your computer and use it in GitHub Desktop.
>>> df_cols = pd.read_csv("dates_text_cols.csv", parse_dates={"date": ["y", "m", "d"]})
>>> df_cols
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