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

4 different teams in moneyline for multiple games #1

Open
SCasanova opened this issue Aug 17, 2021 · 1 comment
Open

4 different teams in moneyline for multiple games #1

SCasanova opened this issue Aug 17, 2021 · 1 comment

Comments

@SCasanova
Copy link

SCasanova commented Aug 17, 2021

There seems to be a mistake with the moneyline (and possibly other markets) in 2015_20_ARI_CAR, 2015_18_PIT_CIN, and 2012_10_TEN_MIA

reprex:

library(magrittr)
readRDS('~/Downloads/nfl_lines_odds.rds') %>%  
  dplyr::filter( game_id %in% c('2015_20_ARI_CAR', '2015_18_PIT_CIN', '2012_10_TEN_MIA') & market_type == 'money_line') %>% 
  dplyr::pull(abbr) %>% unique()
#>  [1] "BAL" "MIA" "TEN" "OAK" "PIT" "CIN" "MIN" "SEA" "NE"  "DEN" "CAR" "ARI"

Created on 2021-08-16 by the reprex package (v2.0.1)

@SCasanova SCasanova changed the title 4 different teams in moneyline for 2015_20_ARI_CAR 4 different teams in moneyline for multiple games Aug 17, 2021
@mrcaseb
Copy link
Owner

mrcaseb commented Aug 17, 2021

Hm. This seems to be a bug in the underlying data. Here is the complete list of problematioc game_ids

library(dplyr)

nfl_lines_odds |> 
  select(game_id, abbr) |> 
  filter(!abbr %in% c("over", "under")) |> 
  distinct() |>
  count(game_id, abbr) |> 
  count(game_id) |> 
  filter(n>2, !is.na(game_id)) |> 
  pull(game_id)

#> [1] "2012_10_TEN_MIA" "2013_18_SD_CIN"  "2014_18_BAL_PIT" "2014_18_CIN_IND" "2015_18_PIT_CIN" "2015_20_ARI_CAR"

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