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

season_id 22017 missing within game table #3

Open
atlhawksfanatic opened this issue Mar 30, 2023 · 1 comment
Open

season_id 22017 missing within game table #3

atlhawksfanatic opened this issue Mar 30, 2023 · 1 comment

Comments

@atlhawksfanatic
Copy link

Corresponds to the 2017-18 NBA Season, the game table does not appear to have any observations from that season.

game <- read_csv(unz("basketball.zip", "csv/game.csv"))
 game |> filter(season_id > 22014) |>  group_by(season_id) |> tally()
# A tibble: 7 × 2
  season_id     n
      <dbl> <int>
1     22015  1230
2     22016  1230
3     22018  1230
4     22019  1059
5     22020  1080
6     22021  1230
7     22022  1018
@atlhawksfanatic
Copy link
Author

Looks like it might be that the entire season is missing as I don't see it in the play-by-play table either. The 4th and 5th digits in game_id should correspond with the beginning year of that season and 17 is missing:

pbp <- read_csv(unz("basketball.zip", "csv/play_by_play.csv"))
pbp |> mutate(szn = as.numeric(str_sub(game_id, 4, 5))) |> filter(szn > 15, szn < 25) |> group_by(szn) |> tally()
# A tibble: 6 × 2
    szn      n
  <dbl>  <int>
1    16 542619
2    18 548716
3    19 476616
4    20 474335
5    21 538810
6    22 456109

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

1 participant