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  
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


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.

Files for nishant-outlier-76, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size nishant_outlier_76-1.0.2-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size nishant_outlier_76-1.0.2.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page