Created
March 13, 2018 14:30
-
-
Save jjsantanna/d32ba1fed7bac91124bfac4263a83587 to your computer and use it in GitHub Desktop.
datetime 2 timestamp
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 datetime_converter(text): | |
try: | |
return pd.to_datetime(text,format='%Y-%m-%d %H:%M:%S') | |
except AttributeError: | |
return text | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment