0
I’m conducting a data analysis on a dataset which displays temperature data (from January to December) over the years.
By importing the dataset I found that it has some inaccurate temperature values in the range of 999.90. What I could do replace this value by the average of the months?
I got it. The laptop I was using bugged! Replace the values of
999.90
forNaN
and then insert in place ofNaN
the average of the values by the following commanddf_rec2_nan.fillna(df_rec2_nan.mean(0),inplace=True)
which resulted in the same values as the drec4s solution. Thank you!– Felipe Roque