Last active
August 22, 2018 15:50
-
-
Save rcgalbo/810c1b3ccef019419c76de42585e8c82 to your computer and use it in GitHub Desktop.
Converting list of columns to date time
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
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