Skip to content

Instantly share code, notes, and snippets.

@ericgitonga
Created June 24, 2021 11:57
Show Gist options
  • Save ericgitonga/adfffab65975c30aa61b9e72ebe6ddde to your computer and use it in GitHub Desktop.
Save ericgitonga/adfffab65975c30aa61b9e72ebe6ddde to your computer and use it in GitHub Desktop.
df["year"] = df["funded_time"].apply(lambda x: x.year)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment