Created
March 30, 2020 08:08
-
-
Save AVJdataminer/f339c782ec55fb986a9e2d4020ee0742 to your computer and use it in GitHub Desktop.
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 ext_date(df, column): | |
df[column] = pd.to_datetime(df[column],format = "%Y-%m-%d") | |
df[column] = df[column].dt.strftime('%Y%m%d') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment