While data wrangling in python, using pandas from a csv file, how to deal with -inf values which might arise when making a column for percentage change calculations? Suppose you have a data which you loaded to python using pandas as dataframe. Then, you create another column which has values of Percentage Change between say any two columns in your data. Some values you inspect to be -inf. How to deal with them, especially when you are cleaning the data to be fed as training data set.
Asked
Active
Viewed 287 times