Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created April 25, 2020 10:35
Show Gist options
  • Save aniruddha27/2745492ec8cbf07061e5422221e071ae to your computer and use it in GitHub Desktop.
Save aniruddha27/2745492ec8cbf07061e5422221e071ae to your computer and use it in GitHub Desktop.
df['Duration_days'] = df['Duration']/timedelta(days=1)
df['Duration_minutes'] = df['Duration']/timedelta(minutes=1)
df['Duration_seconds'] = df['Duration']/timedelta(seconds=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment