Skip to content

Instantly share code, notes, and snippets.

@AayushSameerShah
Created May 23, 2021 06:21
Show Gist options
  • Save AayushSameerShah/35fa747e1ebac40fde5f081cb0749b90 to your computer and use it in GitHub Desktop.
Save AayushSameerShah/35fa747e1ebac40fde5f081cb0749b90 to your computer and use it in GitHub Desktop.
This will help to teak date and time in the existing data
DF.dateCol.apply(lambda x: x.replace(year= x.year + 2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment