Sports Players Objects
Project description
This is project created by Frantz Paul.
sports-players a fun way to represent sports players as objects.
# Installation
pip install sports_players
from sports_players import BasketballPlayer
import pandas as pd
player = BasketballPlayer(full_name="Lebron James")
data = {'points': [20, 10, 10, 10], 'rebounds': [4, 3, 2, 10], 'assists': [2, 4, 7, 2]}
games = pd.DataFrame(data=data)
player.games = games
print(player.ppg()) # returns player points per game
print(player.apg()) # returns player assists per game
sports-players requires the pandas library and is installed when you install the package.
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
sports-players-1.2.2.tar.gz
(2.7 kB
view details)
File details
Details for the file sports-players-1.2.2.tar.gz.
File metadata
- Download URL: sports-players-1.2.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04ab782e49638d591cb2077bcaa8005ccbcffc6498fe7ddeb2f3f0e55f89b16e
|
|
| MD5 |
b34b4c8d83aa1c80b4355d655395317d
|
|
| BLAKE2b-256 |
d7c34262a87af83a86c0b116faad3920a24f61b7a7ee29e5ebdb19b1fb26cca1
|