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

Rookie stats: years_pro = none #232

Open
hiramf opened this issue Mar 19, 2017 · 1 comment
Open

Rookie stats: years_pro = none #232

hiramf opened this issue Mar 19, 2017 · 1 comment

Comments

@hiramf
Copy link

hiramf commented Mar 19, 2017

I'm trying to get stats for rookie players, but many of them have years_pro return as 'none'. this is problematic because it means that if I search for years_pro__le=1, I'm missing a lot of players. I can't seem to search for a string, so does anyone have a fix or workaround?

Example:

q.game(season_year=2016)
q.player(last_name='Bosa')
for p in q.as_players():
    print(p.years_pro) 

also, I'm having trouble sorting. some searches return results in ascending order, and when I try to .sort('years_pro', 'desc').as_players() I get sort() takes exactly 2 arguments (3 given)

@andr3w321
Copy link

For each player you could find all their plays that match the season year of their first play in the db.

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