outliers

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 …

Total answers: 3

ROC curve for Isolation Forest

ROC curve for Isolation Forest Question: I am trying to plot the ROC curve to evaluate the accuracy of Isolation Forest for a Breast Cancer dataset. I calculated the True Positive rate (TPR) and False Positive Rate (FPR) from the confusion matrix. However, I do not understand how the TPR and FPR are in the …

Total answers: 3

matplotlib: disregard outliers when plotting

matplotlib: disregard outliers when plotting Question: I’m plotting some data from various tests. Sometimes in a test I happen to have one outlier (say 0.1), while all other values are three orders of magnitude smaller. With matplotlib, I plot against the range [0, max_data_value] How can I just zoom into my data and not display …

Total answers: 5

Finding the outlier points from matplotlib : boxplot

Finding the outlier points from matplotlib : boxplot Question: I am plotting a non-normal distribution using boxplot and interested in finding out about outliers using boxplot function of matplotlib. Besides the plot I am interested in finding out the value of points in my code which are shown as outliers in the boxplot. Is there …

Total answers: 2