inf to zero
import numpy as np df_fund['dly_retn'].replace(np.inf, 0, inplace=True)
pandas - How to replace inf in a numpy array with zero - Stack Overflow
inf to zero
import numpy as np df_fund['dly_retn'].replace(np.inf, 0, inplace=True)
pandas - How to replace inf in a numpy array with zero - Stack Overflow