https://github.com/kevinheavey/fifa18_player_rating_calculator
Python implementation of sofifa.com's player rating calculator
https://github.com/kevinheavey/fifa18_player_rating_calculator
Last synced: 21 days ago
JSON representation
Python implementation of sofifa.com's player rating calculator
- Host: GitHub
- URL: https://github.com/kevinheavey/fifa18_player_rating_calculator
- Owner: kevinheavey
- Created: 2017-10-01T23:42:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-23T22:54:53.000Z (over 7 years ago)
- Last Synced: 2025-03-26T14:39:40.512Z (about 1 month ago)
- Language: Python
- Size: 271 KB
- Stars: 5
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The website [sofifa.com](https://sofifa.com) has a player rating calculator in minified JavaScript. Here it is implemented in Python.
calculator.py has two top-level functions:
- `calculate_ratings`, which expects a dict of attributes for a single player as input and returns position ratings for that player in all positions or (optionally) a subset of positions
- `calculate_ratings_from_frame`, which works similarly to `calculate_ratings` but expects a pandas `DataFrame` with attributes for multiple players, and returns a `DataFrame` of their position ratings.For an example of a project that uses the output of this calculator, check out [this Kaggle kernel](https://www.kaggle.com/kevinmh/evaluating-the-sofifa-com-rating-calculator)