This can happen when there are inf or nan values in the data.
Use this to remove nan values:
ori_data.dropna(inplace=True)
This can happen when there are inf or nan values in the data.
Use this to remove nan values:
ori_data.dropna(inplace=True)