Skip to main content

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=self.data)
player.games = self.games

print(player.ppg()) # returns player points per game
print(player.apg()) # returns player assists per game

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.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file sports-players-1.2.tar.gz.

File metadata

  • Download URL: sports-players-1.2.tar.gz
  • Upload date:
  • Size: 2.6 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

Hashes for sports-players-1.2.tar.gz
Algorithm Hash digest
SHA256 dab3cb9e09d00a63913c4c14972b16ce927bbc4981979915f46cd428739e4355
MD5 8cfe724b996ac4e78ac03b05ad2b1a45
BLAKE2b-256 593e70f442d11ff7702ca347350b937392ad3fa05574d6fee6453237d38d07f6

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