How to Replace Outliers with Median in Pandas dataframe?
How to Replace Outliers with Median in Pandas dataframe? Question: Here’s my dataframe: cars_num_df.head(10) mpg cylinders displacement horsepower weight acceleration age 0 18.0 8 307.0 130.0 3504.0 12.0 13 1 15.0 8 350.0 165.0 3693.0 11.5 13 2 18.0 8 318.0 150.0 3436.0 11.0 13 3 16.0 8 304.0 150.0 3433.0 12.0 13 4 17.0 …