Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created February 16, 2020 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aravindpai/999e1af658987b2c651a7b24c458889d to your computer and use it in GitHub Desktop.
Save aravindpai/999e1af658987b2c651a7b24c458889d to your computer and use it in GitHub Desktop.
num_of_matches=batting_df.groupby(['year']).apply(lambda x:x['match'].nunique()).reset_index(name='No. of Matches')
fig = num_of_matches.plot.bar(x="year", y="No. of Matches", rot=0, title="No. of T20s India Played",figsize=(10,8)).get_figure()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment