Skip to content

Commit

Permalink
fixed reference to position in import_combine_data
Browse files Browse the repository at this point in the history
  • Loading branch information
RiplAMSC authored and RiplAMSC committed Aug 19, 2022
1 parent bcff032 commit 4036768
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 4036768

Please sign in to comment.