Comments (5)
I updated the statsapi.standings_data() wiki page to clarify that the division
parameter currently accepts the division abbreviation, not the id. I will keep this issue open to add support for division ids in the division field in addition to the abbreviations.
>>> statsapi.standings_data(leagueId="104", division="NLE")
{204: {'div_name': 'National League East', 'teams': [{'name': 'Atlanta Braves', 'div_rank': '1', 'w': 37, 'l': 24, 'gb': '-', 'wc_rank': '-', 'wc_gb': '-', 'wc_elim_num': '-', 'elim_num': '-', 'team_id': 144, 'league_rank': '1', 'sport_rank': '1'}, {'name': 'Miami Marlins', 'div_rank': '2', 'w': 35, 'l': 28, 'gb': '3.0', 'wc_rank': '2', 'wc_gb': '+2.0', 'wc_elim_num': '-', 'elim_num': '98', 'team_id': 146, 'league_rank': '4', 'sport_rank': '4'}, {'name': 'New York Mets', 'div_rank': '3', 'w': 30, 'l': 32, 'gb': '7.5', 'wc_rank': '5', 'wc_gb': '2.5', 'wc_elim_num': '99', 'elim_num': '94', 'team_id': 121, 'league_rank': '8', 'sport_rank': '8'}, {'name': 'Philadelphia Phillies', 'div_rank': '4', 'w': 29, 'l': 32, 'gb': '8.0', 'wc_rank': '6', 'wc_gb': '3.0', 'wc_elim_num': '99', 'elim_num': '94', 'team_id': 143, 'league_rank': '9', 'sport_rank': '9'}, {'name': 'Washington Nationals', 'div_rank': '5', 'w': 25, 'l': 36, 'gb': '12.0', 'wc_rank': '12', 'wc_gb': '7.0', 'wc_elim_num': '95', 'elim_num': '90', 'team_id': 120, 'league_rank': '15', 'sport_rank': '15'}]}}
from mlb-statsapi.
i want to work on this
from mlb-statsapi.
i want to work on this
That's great, please feel free to submit a pull request.
from mlb-statsapi.
I submitted a pull request for this enhancement if the issue is still available.
from mlb-statsapi.
released in v1.6.2
from mlb-statsapi.
Related Issues (20)
- Past 7 Day stats for player id HOT 1
- Get request for 'team_stats' returning 404 HOT 1
- Return line score when using schedule end point HOT 2
- dataclass() got an unexpected keyword argument 'kw_only' HOT 2
- TypeError: Teamrecords.__init__() got an unexpected keyword argument 'eliminationnumbersport' HOT 2
- Determining a list of teams that a player played on HOT 1
- SSL: SSLV3_ALERT_HANDSHAKE_FAILURE HOT 1
- game_contextMetrics 404 Not Found for url HOT 6
- Unexpected behavior in lookup_player() when season is not specified HOT 1
- Incorrect seasons endpoint documentation HOT 2
- boxscore_data function returns incorrect and incomplete batting notes. HOT 2
- Player Stats Error HOT 10
- Typos HOT 5
- Get Team Mark HOT 2
- Extra Games in Schedule HOT 2
- Normalize diacritics in player lookup HOT 6
- The divisions endpoint allows 'season' as an optional endpoint. HOT 1
- The roster for team HOT 6
- Thanks Todd! HOT 1
- Endpoints without parameters throwing Exception HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlb-statsapi.