Comments (4)
@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.
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.
@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.
@jaebradley thanks for the update and follow-up on this. Appreciate it! 👍
from basketball_reference_web_scraper.
Related Issues (20)
- Encoding issue HOT 4
- Repl example broken HOT 2
- Player Search returns ValueError Unknown league abbreviation HOT 2
- Error: super() takes at least 1 argument(0 given) HOT 2
- add method to download all play-offs boxscores for particular player & year HOT 1
- Want to get current nba season standings HOT 4
- Salary Request HOT 2
- Standings for Northwest Division teams
- Shot Chart Data HOT 1
- Play by Play Functionality HOT 1
- Installation failed HOT 4
- Pull More Data From Player Box Score
- Error "Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?" HOT 3
- `client.play_by_play` failing with `ValueError: time data 'Time' does not match format '%M:%S.%f'` HOT 3
- IndexError: list index out of range HOT 2
- Not Getting Data HOT 1
- lxml issue HOT 9
- play by play API appears to be broken
- Installation Error HOT 2
- client.player_box_scores function no longer working. HOT 2
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 basketball_reference_web_scraper.