Last active
June 5, 2019 20:39
-
-
Save itsderek23/f48fc816f8b9c9c7699d19043569ec84 to your computer and use it in GitHub Desktop.
Hubspot Signups by Month w/ Pandas and PetalData
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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