jchristo12 / fantasy_football

Files related to fantasy football analysis
0 stars 0 forks source link

Ratio stats function not handling -inf #21

Closed jchristo12 closed 5 years ago

jchristo12 commented 5 years ago

#last game stat calc last_col_calc = data['last_' + num_col] / data['last_' + denom_col] last_col = last_col_calc.replace([np.inf, np.NaN], [data['last_' + num_col], 0])

in the 3rd line, need np.inf and -np.inf to both be replaced with np.NaN