Skip to content

Instantly share code, notes, and snippets.



Created Feb 16, 2020
What would you like to do?
sr=batting_df.groupby('year').apply( lambda x: (np.sum(x['runs'].values)/x.shape[0])*100 ).reset_index(name='strike rate')"year", y="strike rate", rot=0, title="Team Batting performance over the years",figsize=(10,8)).get_figure()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.