Pandas replace inf with max value of column
In this post, We will understand how to replace inf with the max value of the column. The inf value is an infinite value which is a positive or negative value that is represented by np.inf or -np.inf.The Pandas dataframe replaces() method is used to do this job. 1. Pandas replace inf with max value …