Skip to content

Instantly share code, notes, and snippets.

@rcgalbo
Last active August 22, 2018 15:50
Show Gist options
  • Save rcgalbo/810c1b3ccef019419c76de42585e8c82 to your computer and use it in GitHub Desktop.
Save rcgalbo/810c1b3ccef019419c76de42585e8c82 to your computer and use it in GitHub Desktop.
Converting list of columns to date time
def convert_to_datetime(df, columns):
return df[columns].apply(pd.to_datetime, axis=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment