Skip to content

Instantly share code, notes, and snippets.

@databyjp
Created February 20, 2020 05:22
Show Gist options
  • Save databyjp/1e8162f3841913309ee8ce0b7adffc51 to your computer and use it in GitHub Desktop.
Save databyjp/1e8162f3841913309ee8ce0b7adffc51 to your computer and use it in GitHub Desktop.
season_tot_df = season_tot_df.assign(
fan_ppg=(
(season_tot_df.points+
(season_tot_df.offensive_rebounds+season_tot_df.defensive_rebounds)*1.2+
season_tot_df.assists*1.5+season_tot_df['blocks']*2+season_tot_df.steals*2-season_tot_df.turnovers)
/season_tot_df.games_played
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment