Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Last active February 19, 2020 04:46
Show Gist options
  • Save aravindpai/e00c38ad34f7fc9015e5d7d71f8225cc to your computer and use it in GitHub Desktop.
Save aravindpai/e00c38ad34f7fc9015e5d7d71f8225cc to your computer and use it in GitHub Desktop.
print("Avg no. of balls to hit 4:",batting_df.shape[0]/batting_df['runs'].value_counts()[4])
print("Avg no. of balls to hit 6:",batting_df.shape[0]/batting_df['runs'].value_counts()[6])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment