Skip to content

Instantly share code, notes, and snippets.

@deanjamesss
Last active February 2, 2021 10:08
Show Gist options
  • Save deanjamesss/64b15d8536ab68481c01d74cedf3291d to your computer and use it in GitHub Desktop.
Save deanjamesss/64b15d8536ab68481c01d74cedf3291d to your computer and use it in GitHub Desktop.
import pandas as pd
if __name__ == '__main__':
# Parse columns 0 through 2 as a date.
df = pd.read_csv('read_csv_keep_date.csv', header=0,
parse_dates=[['col0', 'col1', 'col2']], keep_date_col=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment