Skip to content

Instantly share code, notes, and snippets.

@itsderek23
Last active June 5, 2019 20:39
Show Gist options
  • Save itsderek23/f48fc816f8b9c9c7699d19043569ec84 to your computer and use it in GitHub Desktop.
Save itsderek23/f48fc816f8b9c9c7699d19043569ec84 to your computer and use it in GitHub Desktop.
Hubspot Signups by Month w/ Pandas and PetalData
grouped = df.groupby(pd.Grouper(key="created",freq="M")).agg({"created": "count"})
grouped.rename(columns={"created": "new_contacts"},inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment