Created
June 5, 2019 20:58
-
-
Save itsderek23/b7546dfec4b57a66477831c1fd3d0ffb to your computer and use it in GitHub Desktop.
Hubspot Contacts by state with 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
(contacts.df | |
.groupby("ip_state") | |
.agg({"created": "count"}) | |
.sort_values(by="created",ascending=False) | |
).rename(columns={"created": "number_of_contacts"}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment