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

Uploaded Source

File details

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

File metadata

  • Download URL: sports-players-1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e4cbd3977fcb2cb743c5cb3a6da52c849f963d0ed0397c1bd597f7b5c0b9fa62
MD5 9b544f480d25fc96faf484156545ad28
BLAKE2b-256 940020ed6316df73f59f3582274dd203d3055aa08fcecc3d4922b1fa12daf5cb

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