There is a DataFrame like this:
cost
0 8762.000000
1 -1
2 7276.000000
3 9574.000000
4 -1
.. ...
59 5508.000000
60 7193.750000
61 5927.333333
62 -1
63 4972.000000
The -1 is the exception value in this case, so how to replace -1 with NaN. And then how to interpolate NaN for replacement.
After that, the DataFrame was cleaned.But there may be some abnormal high and low values of the DataFrame, and then how to interpolate abnormal high and low values for replacement.