Git Product home page Git Product logo

Comments (5)

toddrob99 avatar toddrob99 commented on September 13, 2024 1

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.

SigireddyBalasai avatar SigireddyBalasai commented on September 13, 2024

i want to work on this

from mlb-statsapi.

toddrob99 avatar toddrob99 commented on September 13, 2024

i want to work on this

That's great, please feel free to submit a pull request.

from mlb-statsapi.

jimcreel avatar jimcreel commented on September 13, 2024

I submitted a pull request for this enhancement if the issue is still available.

from mlb-statsapi.

toddrob99 avatar toddrob99 commented on September 13, 2024

released in v1.6.2

from mlb-statsapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.