Closed jchristo12 closed 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
np.inf
-np.inf
np.NaN
#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 withnp.NaN