Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import_injuries only has 2023 data up until week 19 #85

Closed
Josh-Ness opened this issue Feb 19, 2024 · 2 comments
Closed

import_injuries only has 2023 data up until week 19 #85

Josh-Ness opened this issue Feb 19, 2024 · 2 comments
Assignees

Comments

@Josh-Ness
Copy link

import nfl_data_py as nfl

df = nfl.import_injuries([2023])

df['week'].max()
Out[9]: 19

@mrcaseb mrcaseb transferred this issue from nflverse/nfl_data_py Sep 20, 2024
@john-b-edwards john-b-edwards self-assigned this Sep 20, 2024
@john-b-edwards
Copy link
Contributor

I'll take a look at resolving this. Seems like the data is there for the postseason, but it's not included for some reason:

> scrape_ir(2023,18,"REG") |>
+     head()
  ClubCode Season SeasonType Week  Injury1 Injury2 InjuryStatus     GsisID   EliasID FirstName FootballName  LastName Position
1      ARZ   2023        REG   18       --      --           -- 00-0035334 STR637423     Kevin        Kevin    Strong       DT
2      ARZ   2023        REG   18     Knee      --          Out 00-0032222 HUM728022  DeMarcus         D.J. Humphries        T
3      ARZ   2023        REG   18     Knee      --          Out 00-0038623 STI401047     Dante        Dante    Stills       DE
4      ARZ   2023        REG   18    Ankle      --          Out 00-0039007 WIL292135   Garrett      Garrett  Williams       CB
5      ARZ   2023        REG   18 Shoulder      -- Questionable 00-0034623 CHA014180     Andre        Andre  Chachere        S
6      ARZ   2023        REG   18     Foot      -- Questionable 00-0036896 DIM738004    Victor       Victor  Dimukeje       LB
                     PracticeStatus Practice1 Practice2 ModifiedDt PlayerID
1 Limited Participation in Practice      Knee        -- 1704408303    48462
2   Did Not Participate In Practice      Knee        -- 1704487332    42367
3   Did Not Participate In Practice      Knee        -- 1704487326    56078
4   Did Not Participate In Practice     Ankle        -- 1704487337    55937
5 Limited Participation in Practice  Shoulder        -- 1704487316    46807
6 Limited Participation in Practice      Foot        -- 1704487316    53639
> scrape_ir(2023,1,"POST") |>
+     head()
  ClubCode Season SeasonType Week Injury1 Injury2 InjuryStatus     GsisID   EliasID FirstName FootballName LastName Position
1      BUF   2023       POST    1      --      --           -- 00-0031588 DIG218895    Stefon       Stefon    Diggs       WR
2      BUF   2023       POST    1      --      --           -- 00-0031054 JON200565    DaQuan       DaQuan    Jones       DT
3      BUF   2023       POST    1      --      --           -- 00-0034857 ALL529264    Joshua         Josh    Allen       QB
4      BUF   2023       POST    1      --      --           -- 00-0033904 DAW056236      Dion         Dion  Dawkins        T
5      BUF   2023       POST    1      --      --           -- 00-0033072 FLO758060   Leonard      Leonard    Floyd       DE
6      BUF   2023       POST    1      --      --           -- 00-0036888 HAM401130     Damar        Damar   Hamlin        S
                   PracticeStatus                           Practice1 Practice2 ModifiedDt PlayerID
1 Did Not Participate In Practice Not injury related - resting player        -- 1705089292    42489
2 Did Not Participate In Practice Not injury related - resting player        -- 1705089308    41341
3  Full Participation in Practice                                Neck        -- 1705089274    46076
4  Full Participation in Practice                                Hand   Illness 1705089320    44875
5  Full Participation in Practice Not injury related - resting player        -- 1705089274    43298
6  Full Participation in Practice                            Shoulder        -- 1705089274    53641

@john-b-edwards
Copy link
Contributor

After checking the API response, it looks like the NFL did not upload any postseason injury data to the data exchange following week 1 of the postseason for the 2023 season (so there is no data for week 2 of the postseason, or week 20 relative to the whole season).

Unfortunately, this is missing data on the NFL's end, not ours, so we are unable to fix this issue as it stands. If the NFL at any point re-uploads this missing data (which is unlikely but not impossible), we should automatically re-ingest it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants