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]
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df0fefac458aa4a753211a3c83694dbf07327f9f8e1a3b68f7205d8dec582451
|
|
| MD5 |
024ccd17a7c8786769cc8df6c8218bbd
|
|
| BLAKE2b-256 |
053b7ef3332a23975d86747de9f457e6bc19e6b4e3f9a9de1a0b76d6547c8fa3
|
File details
Details for the file statisticsmaniac-0.0.3-py3-none-any.whl.
File metadata
- Download URL: statisticsmaniac-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a80fe03097bbbd071f36217f23240af2251156eb617a0c06f7f5f01afbd47e1
|
|
| MD5 |
cd86d627af5832b938c4327d40545428
|
|
| BLAKE2b-256 |
b1b0ea7c558f342eaf99ff8be6215043c1371758b783c6a4723c2b77d3315b0b
|