Skip to content

Instantly share code, notes, and snippets.

@AVJdataminer
Created March 30, 2020 08:08
Show Gist options
  • Save AVJdataminer/f339c782ec55fb986a9e2d4020ee0742 to your computer and use it in GitHub Desktop.
Save AVJdataminer/f339c782ec55fb986a9e2d4020ee0742 to your computer and use it in GitHub Desktop.
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