I can't calculate the mean of a variable because it has infinite values in it, but I can't find and fix them:
perc_df[['variable']].mean()
variable inf
dtype: float64
I've never dealt with infinite values before, is there an equivalent to "isna()" and "dropna()" for infinite values in pandas? If there isn't, how do I deal with these values?