by shigemk2

当面は技術的なことしか書かない

pandas inf to zero

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