---
title: "How to remove outliers from Seaborn boxplot charts"
description: "Hide outliers when displaying boxplot in Seaborn"
author: "Bartosz Mikulski"
author_bio: "Principal AI Engineer & MLOps Architect. I bridge the gap between \"it works in a notebook\" and \"it works for 200 million users.\""
author_url: https://mikulskibartosz.name
author_linkedin: https://www.linkedin.com/in/mikulskibartosz/
author_github: https://github.com/mikulskibartosz
canonical_url: https://mikulskibartosz.name/how-to-remove-outliers-from-seaborn-boxplot-charts
---

In this article, I am going to show you how to remove outliers from Seaborn boxplots. First, I am going to plot a boxplot without modifications. Then, I will remove all of the outliers. In the end, I am going to restore outliers, but this time I am going to make them less prominent.

## Boxplot with outliers

Let's start with plotting the data I already have.

```python
import seaborn as sb

sb.boxplot(x = 'Value', data = with_merged)
```

![Boxplot with outliers](/images/2019-10-14-how-to-remove-outliers-from-seaborn-boxplot-charts/with_outliers.png)

## Boxplot without outliers

To remove the outliers from the chart, I have to specify the "showfliers" parameter and set it to false.

```python
sb.boxplot(x = 'Value', data = with_merged, showfliers = False)
```

![Boxplot without outliers](/images/2019-10-14-how-to-remove-outliers-from-seaborn-boxplot-charts/without_outliers.png)

## Change the outliers style

In the next example, I am going to change the size of the outliers markers to make them less distracting for people who look at the chart.

```python
sb.boxplot(x = 'Value', data = with_merged, flierprops = dict(markerfacecolor = '0.50', markersize = 2))
```

![Boxplot with smaller outlier markers](/images/2019-10-14-how-to-remove-outliers-from-seaborn-boxplot-charts/small_outliers.png)