Skip to main content

More graceful handling of outliers in plots

Project description

outlier_plotting

More graceful handling of outliers in plots. Currently supports most of seaborn categorical scatter, distributional and estimate plots.

Functionality

handle_outliers remove outliers from the plot and show them as text boxes. It can be used with most seaborn plotting function that works with long-form data as well as kdeplot.

Notable exceptions are:

  • countplot
  • lineplot
  • scatterplot

Please not that only inliers are passed into the plotting function, consequently density estimates and functionals are only computed on that subset and not representative of the whole data.

Example

from outlier_plotting.sns import handle_outliers
import seaborn as sns
from matplotlib import pyplot as plt

plt.title('Showing Outliers')
sns.boxplot(data=df, y = 'type', x='value')
plt.show()

plt.title('With Outlier Handling')
handle_outliers(data=df, y = 'type', x='value', plotter=sns.boxplot)
plt.show()

png

png

For more examples, see examples.ipynb.

Installation

conda

conda env create -f environment.yml

##PyPI

pip install outlier-plotting

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

outlier_plotting-0.2.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

outlier_plotting-0.2.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file outlier_plotting-0.2.1.tar.gz.

File metadata

  • Download URL: outlier_plotting-0.2.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9

File hashes

Hashes for outlier_plotting-0.2.1.tar.gz
Algorithm Hash digest
SHA256 19cb62bc164cd149a0ee1bcde0d8c2afaf8697dae575406ba47e234f18141c7b
MD5 4a8ff8b43c1af6e43dce215153922319
BLAKE2b-256 4c594ebc625133c6a4a3e738ab6b38f3549daeb3a6e80ffb3c6456deea2431cd

See more details on using hashes here.

File details

Details for the file outlier_plotting-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: outlier_plotting-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9

File hashes

Hashes for outlier_plotting-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 000a3300d19bc579a5711fc9f9815647b1f193f72909c905ff4eb622431eef4e
MD5 9447e4bf9699662297d49be2d971bba4
BLAKE2b-256 c8986724a6948fed81ee5ff9cf9f3ffba6375a80b7fa1cf3bc02c8aae2c9ec57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page