Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

statisticsmaniac

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

statisticsmaniac

A module which gives the stats of any random cricketer in form of pandas dataframe

  • 0.0.3
  • PyPI
  • Socket score

Maintainers
1

To install the module

pip install statisticsmaniac

To import the module

import statmaniac

To specify the format

format = 1 for Tests

format = 2 for ODIs

format = 3 for T20Is

To find the stats of a player

statmaniac.player_stats(player,format)

Example:

statmaniac.player_stats("Virat Kohli",3)

Note : Use the player names as on cricinfo website , for example : don't write player name as "Rohit Sharma", it is "RG Sharma" on cricinfo

This will return a pandas dataframe which can be further used for data analysis

To save the stats as a csv file

statmaniac.save_stats_as_csv("Virat Kohli",3)

To get the player summary

statmaniac.player_summary("Virat Kohli",3)

This will return a list in this format [runs,notouts,batting average,hundreds]

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc