Skip to content

Instantly share code, notes, and snippets.

@franklinokech
Created May 27, 2020 10:41
Show Gist options
  • Save franklinokech/21abae9597c76414355b4a9809e89d35 to your computer and use it in GitHub Desktop.
Save franklinokech/21abae9597c76414355b4a9809e89d35 to your computer and use it in GitHub Desktop.
convert a pandas data column to the correctly
pd.to_datetime(df.date_col, format='%d-%m-%Y')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment