Skip to content

Commit

Permalink
Merge pull request #32 from aripley2008/issue_#31_break_fix
Browse files Browse the repository at this point in the history
fixed reference to position in import_combine_data
  • Loading branch information
cooperdff authored Aug 20, 2022
2 parents 33fedd6 + 4036768 commit 3478a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nfl_data_py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def import_combine_data(years=None, positions=None):

# filter to years and positions
if len(years) > 0 and len(positions) > 0:
df = df[(df['season'].isin(years)) & (df['position'].isin(positions))]
df = df[(df['season'].isin(years)) & (df['pos'].isin(positions))]
elif len(years) > 0:
df = df[df['season'].isin(years)]
elif len(positions) > 0:
Expand Down

0 comments on commit 3478a72

Please sign in to comment.