Git Product home page Git Product logo

Comments (4)

jaebradley avatar jaebradley commented on May 31, 2024

@cpjolicoeur I understand the reasoning behind this request, but what's giving me a little pause is that following in BBref's lead of a TOT team is not really a design pattern I'd like to follow.

Maybe the solution is to change the team field to a teams field that outputs a set of teams when interacting with the in-memory representation of the data and a comma-separated string of team names when outputting the JSON and CSV representations of the data.

Obviously, this is a breaking change, but is potentially the cleanest solution.

Thoughts?

from basketball_reference_web_scraper.

cpjolicoeur avatar cpjolicoeur commented on May 31, 2024

So, you are talking about now just collecting in-memory as single dataset per player (via slug) instead of N number of datasets per player with multiple teams?

I think that makes sense and is clean from a representation and output standpoint, you just are trading off the ability to see the stats per individual team vs the total if you still wanted it that way.

Or are you suggesting supporting both, just via a new argument to determine the data structure?

from basketball_reference_web_scraper.

jaebradley avatar jaebradley commented on May 31, 2024

@cpjolicoeur sorry about never getting back to you and for the delay in implementing this feature request.

The ability to fetch combined advanced season statistics for players was released in v4.9.0.

Here's an example repl.it that should illustrate this: https://repl.it/@jaebradley/Player-Advanced-Season-Totals-That-Includes-Combined-Values.

Hope this sufficiently addresses your use-case.

from basketball_reference_web_scraper.

cpjolicoeur avatar cpjolicoeur commented on May 31, 2024

@jaebradley thanks for the update and follow-up on this. Appreciate it! 👍

from basketball_reference_web_scraper.

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.