Last active
April 12, 2019 16:53
-
-
Save itsderek23/fe1024d5939b44442d93bff9b71cd6a8 to your computer and use it in GitHub Desktop.
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
%matplotlib inline | |
import matplotlib | |
import matplotlib.pyplot as plt | |
grouped = df_users.groupby(pd.Grouper(key='signed_up_at',freq='W')).agg({"email": 'count'}) | |
plt.figure(figsize=(12,8)) | |
plt.plot(grouped.index.values, grouped.email.values) | |
plt.xlabel('Week', fontsize=12) | |
plt.ylabel('Users', fontsize=12) | |
plt.title("User Signups by Week") | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment