Skip to main content

Library for removing outliers from pandas dataframe

PROJECT 2, UCS633 - Data Analysis and Visualization
Navkiran Singh  
COE17
Roll number: 101703365

Update in 1.1.0 - command line script method changed, supports calling from both windows and linux terminal

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

Two optional arguments - which must be provided together or left out. Third argument is threshold, by default it's 1.5. Fourth argument is method - z_score or IQR.

Output is the number of rows removed from the input dataset. Resulting csv is saved as output.csv.

Installation

pip install outliers_navkiran

Recommended - test in a virtual environment.

Use via command line

outliers_navkiran_cli in.csv out.csv

Defaults are 1.5 threshold and IQR.

When providing custom threshold and method:

outliers_navkiran_cli in.csv out.csv 3 z_score outliers_navkiran_cli in.csv out.csv 3 IQR

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 outliers_navkiran import remove_outliers_z,remove_outliers_iqr
# for using z-score
remove_outliers_z('input.csv', 'output.csv',1.5)
# for using IQR
remove_outliers_iqr('input.csv', 'output.csv',1.5)

Release files for outliers-navkiran 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for outliers-navkiran 1.1.0
File Size Uploaded
outliers_navkiran-1.1.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for outliers-navkiran 1.1.0
File Interpreter ABI Platform
outliers_navkiran-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / outliers_navkiran-1.1.0.tar.gz

Download URL outliers_navkiran-1.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1b2da4c9a500098c5acac0ef4736f21ed4e2600835bb0f6acc525fab2cc535f7
BLAKE2b-256 checksum
How to use checksums
67e02755d1bbe407018d775a7dbf122c9147858d4b5b8c7ec5ff2486bed30762
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

Release files / outliers_navkiran-1.1.0-py3-none-any.whl

Download URL outliers_navkiran-1.1.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36632ae478d7011f6e3582121b280ae5f38fe220aea1a04874443f1a403f7959
BLAKE2b-256 checksum
How to use checksums
f22ff7148009c31b5c2edbe12b2f0ecc4bf08eb738bb14e41b0a0e83553b8eac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.4

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page