Skip to main content

Outlier Removal Using Z-score or IQR

Project description

Library for removing outliers from pandas dataframe

PROJECT 2, UCS633 - Data Analysis and Visualization
Nishant Goel  
COE17
Roll number: 101703376

Takes two inputs - filename of input csv, intended filename of output csv.

Output is the number of rows removed from the input dataset.It also shows new dataset in case of IQR

Output is the number of rows removed from the input dataset in case of z-score

Installation

pip install nishant_outlier_76

Recommended - test in a virtual environment.

Use via command line

outliers_cli in.csv out.csv
outliers_cli in.csv out.csv 1.5

First argument after outcli is the input csv filename from which the dataset is extracted. The second argument is for storing the final dataset after processing.

Use in .py script

from nishant_outlier_76 import remove_outliers_iqr
remove_outliers('input.csv', 'output.csv')
from nishant_outlier_76 import remove_outliers
remove_outliers('input.csv', 'output.csv',threshold)

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

nishant_outlier_76-1.0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

nishant_outlier_76-1.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file nishant_outlier_76-1.0.2.tar.gz.

File metadata

  • Download URL: nishant_outlier_76-1.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for nishant_outlier_76-1.0.2.tar.gz
Algorithm Hash digest
SHA256 dfd62464f72e4cd613879ca1b14cf27103ad13158315e869074d267e3075bfd8
MD5 d71f9a413af27446347b53a64a3b38ff
BLAKE2b-256 8c2b364e2f434da55e1e54b9c35870623b1a1b07b69784f3e3f1aa5aa8d23b8b

See more details on using hashes here.

Provenance

File details

Details for the file nishant_outlier_76-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: nishant_outlier_76-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for nishant_outlier_76-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3810e106164b71573da21c95574779c4b18ffe6833f1cca2f8f5e2a53e8a36fc
MD5 b3bc33d2276bc28d3b468c3c16db11a2
BLAKE2b-256 53992fb8728829fe4307780cef3baf805c8201f733436adc34241ba34f4fa5d3

See more details on using hashes here.

Provenance

Supported by

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