Skip to main content

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

Project description

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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

statisticsmaniac-0.0.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

statisticsmaniac-0.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file statisticsmaniac-0.0.3.tar.gz.

File metadata

  • Download URL: statisticsmaniac-0.0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for statisticsmaniac-0.0.3.tar.gz
Algorithm Hash digest
SHA256 df0fefac458aa4a753211a3c83694dbf07327f9f8e1a3b68f7205d8dec582451
MD5 024ccd17a7c8786769cc8df6c8218bbd
BLAKE2b-256 053b7ef3332a23975d86747de9f457e6bc19e6b4e3f9a9de1a0b76d6547c8fa3

See more details on using hashes here.

File details

Details for the file statisticsmaniac-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for statisticsmaniac-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2a80fe03097bbbd071f36217f23240af2251156eb617a0c06f7f5f01afbd47e1
MD5 cd86d627af5832b938c4327d40545428
BLAKE2b-256 b1b0ea7c558f342eaf99ff8be6215043c1371758b783c6a4723c2b77d3315b0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page