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

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

Uploaded Source

File details

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

File metadata

  • Download URL: sports-players-1.2.1.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

Hashes for sports-players-1.2.1.tar.gz
Algorithm Hash digest
SHA256 a8d884a1d6209739c0cd7e9cdb7d0164446775964eb98a9e18bb947958c3ee42
MD5 1987e57d2c41a7975ad6f255ed3a3da3
BLAKE2b-256 00a3fb4de3d5e69e9a35feef88696fbe2534473b248b85c9bfd1f022fb41b0e4

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