Skip to content

Commit

Permalink
Update page 85 to set initial value as ''
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbraun committed Dec 1, 2023
1 parent 847d29c commit 09a378b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/03_03_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
dfp.loc[~dfp['pos'].duplicated()]

# Combining filtering with changing columns
dfp['draft_desc'] = np.nan
dfp['draft_desc'] = ''
dfp.loc[dfp['draft_round'] == 1, 'draft_desc'] = 'first round'
dfp.loc[(dfp['draft_round'] == 1) & (dfp['draft_number'] <= 14), 'draft_desc'] = 'lottery'
dfp.loc[(dfp['draft_round'] == 1) & (dfp['draft_number'] <= 5), 'draft_desc'] = 'top 5'
Expand Down

0 comments on commit 09a378b

Please sign in to comment.