Skip to content

Instantly share code, notes, and snippets.

@MoGaber
Created December 14, 2020 05:10
Show Gist options
  • Save MoGaber/b7af51e14339fc953f4172fd13c26d76 to your computer and use it in GitHub Desktop.
Save MoGaber/b7af51e14339fc953f4172fd13c26d76 to your computer and use it in GitHub Desktop.
get_sent
# turn the email sent date into a datetime value instead of a string
date_vectorizer = lambda x: datetime.datetime.strptime(x, "%Y-%m-%d %H:%M:%S UTC+0000")
full_data["emails_date_sent"] = full_data["emails_date_sent"].apply(date_vectorizer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment