Open bamerjamer opened 10 months ago
Hey, thanks for the comments. I get what you mean. My initial thought was to only include the most relevant stats for each position, and for most wide receivers rushing is not applicable. But you're right, there are guys like Deebo, Elijah Moore, Puka, etc. who get rushes now so I can look into adding those where possible.
The second issue you raise (RB game log not having receptions) was fixed by #54. I'll include that in my next release. Thanks!
Can we show all stats for a player, not just some? For instance, RBs have a lot of receptions, and some WRs have rushing attempts. In the current "get_player_game_log", you have us specify the position, which then limits the outputs in the resulting dataframe.
For Instance, when we pull the 2023 Week 2 log for Deebo Samuel: p.get_player_game_log(player = 'Deebo Samuel', position = 'WR', season = 2023).loc[1]
We get the following: date 2023-09-17 week 2 team SFO game_location @ opp LAR result W team_pts 30 opp_pts 23 tgt 9 rec 6 rec_yds 63 rec_td 0 snap_pct 0.89 Name: 1, dtype: object
No rushing info at all. However, in pro-football-reference (https://www.pro-football-reference.com/players/S/SamuDe00.htm), we clearly see that Deebo actually had 5 rushing attempts, 38 rushing yards, and a rushing TD.
On the flip side, let's consider Christian McCaffrey, lets look at Week 4 (p.get_player_game_log(player = 'Christian McCaffrey', position = 'RB', season = 2023).loc[3]): date 2023-10-01 week 4 team SFO game_location
opp ARI result W team_pts 35 opp_pts 16 rush_att 20 rush_yds 106 rush_td 3 tgt 8 rec_yds 71 rec_td 1 Name: 3, dtype: object
Mostly everything is here except the number of receptions. It'd be great to add that.
I was just hoping you could return ALL of the stats for each player, instead of just a selection. There's so much more available on PFR that would be nice to easily retrieve.
Other than that, this is a super helpful tool and very easy to use! Thank you for supporting it! :D