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 statsmaniac

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.2.tar.gz (3.3 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.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: statisticsmaniac-0.0.2.tar.gz
  • Upload date:
  • Size: 3.3 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.2.tar.gz
Algorithm Hash digest
SHA256 e5dd9c612560d8198db8a06f8fa343bd600fff743dfea643edfadf6a14e225a2
MD5 c48c03e2f137677cb3a06bf33ba2341a
BLAKE2b-256 77c8849c835e0faee463261b97c0951a99f962f0f0ed2c1ed743908c91aa696c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for statisticsmaniac-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e307522ba50699c24ffc5231e8ac382b13b1368e99cc78c786f5ec556208e74
MD5 b1261f6b7071ae6ede70fd85a5295a6e
BLAKE2b-256 77b011727124724f929526457dee93db65067ac85a252434563cc01f0163c68e

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