Skip to content

Instantly share code, notes, and snippets.

@dottyz
Created May 2, 2019 18:39
Show Gist options
  • Save dottyz/6fe24c81a295a6d8a03f2be330abe8b5 to your computer and use it in GitHub Desktop.
Save dottyz/6fe24c81a295a6d8a03f2be330abe8b5 to your computer and use it in GitHub Desktop.
fig, axes = plt.subplots(1, 2, figsize=(20, 7))
for ax, m in zip(axes, ['January', 'July']):
sns.pointplot(x='Date', y='Id', data=ridership[(ridership['Month']==m)&(ridership['User Type']=='Member')].groupby('Date')['Id'].sum().reset_index(), ax=ax, markers='')
ax.set_title(m)
ax.set_ylabel('Total Daily Trips')
ax.set_xticklabels(ax.get_xticklabels(), rotation=45)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment