Closed aqsmith08 closed 1 year ago
Good note, much appreciated. That's come up elsewhere recently. It is related to me not converting the game datetime to Eastern time before parsing the date. Need to correct this uniformly across the packages.
Hey - With the NCAAB season here, I wanted to loop back on this issue. Is there anything we could do to fix some of the dates even if a uniform fix across the package may need to come later? I'd be willing to help but would want to coordinate with you all. Thanks.
I just need to figure out the python equivalent of lubridate.
This one has been on my mind, ill fix it this week
Yo. Looping back here. At this point, there's no urgency given the season is already in full swing but I'll be keen to get this fixed come April.
Hey @saiemgilani - Alrighty, the season is over. Is it time to tackle this? I know that you mentioned figuring out the Python equivalent of lubridate. I'm decent in R. Is there a way I can help here? Don't mean to just throw this over to you. Appreciate everything you've created with this package and all the maintenance work that you do too!
I did fix this just recently! see the game_date
and game_date_time
columns for the load_mbb_schedules()
functions. I think I also input the same deal for the scoreboard/schedule functions on the development version
oh, shoot, that's only for those schedule functions, i'll probably need to implement the same logic elsewhere
I did in fact apply that logic to all the loader functions in the development version:
remotes::install_github("sportsdataverse/hoopR")
I can work on getting that in elsewhere it comes up as an issue. Feel free to open another issue for those
Ack. Amazing, thank you! I'll poke around on this and will open a new issue if I find anything else.
Describe the bug The
game_date
seems to be one day off in some cases when I use thehoopR::load_mbb_player_box
function.To Reproduce
Expected behavior
Based on what I see in the KenPom boxscore, I expect the
game_date
to be 2022-03-03.Screenshots
Additional context
Another example is
game_id
== 401372788 where I'd expect the game date to be 2022-02-26. Could it be that I'm loading the data and it defaults to a timezone that happens to move the game into a new day? I briefly played withlubridate
but couldn't tell if this was the case. Thanks!