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

Column type consistency (ints, characters, doubles etc) #285

Open
TheMathNinja opened this issue May 15, 2021 · 1 comment
Open

Column type consistency (ints, characters, doubles etc) #285

TheMathNinja opened this issue May 15, 2021 · 1 comment
Labels
feature 🌟 a feature request or enhancement

Comments

@TheMathNinja
Copy link
Contributor

I suppose this straddles the border between a bug and feature request. Maybe more feature request.

I'm still working to join ff_playerscores() and ff_scoringhistory() and was striking out, and realized it's because ff_playerscores() presents player names in "First Last" format whereas ff_playerscores() presents player names in "Last, First" format.

I'm thinking that keeping like variables of like name/type consistent across the various ffscrapr functions would be a helpful thing. On a smaller level, didn't know if season being an int in ff_playerscores() and a dbl in ff_scoringhistory() might present similar kinds of problems.

@TheMathNinja TheMathNinja changed the title Variable type inconsistency Variable inconsistency May 15, 2021
@tanho63
Copy link
Member

tanho63 commented May 16, 2021

Naming consistency issue there is because I just try to join mfl_players onto the supplied nflfastr data. I’d get around it by doing nflfastr -> dp_playerids via gsis_id to get mfl_id.

Would not recommend name join.

As I said in #286 - ideally solved with some improved nflfastr rosters logic, which I can PR eventually. In the meantime, if you’re keen to coerce all season/week variables to ints here I would be glad to accept a PR for it, otherwise I’ll get to it when I can

@tanho63 tanho63 changed the title Variable inconsistency Column type consistency (ints, characters, doubles etc) May 23, 2021
@tanho63 tanho63 added feature 🌟 a feature request or enhancement good first issue 🚪 easy wins for new contributors and removed good first issue 🚪 easy wins for new contributors labels May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🌟 a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants