Outlier Removal Using Z-score or IQR
Project description
Library for removing outliers from pandas dataframe
PROJECT 2, UCS633 - Data Analysis and Visualization
Paras Arora
COE18
Roll number: 101703382
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 outlier_101703382
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 outlier_101703382 import remove_outliers_iqr
remove_outliers('input.csv', 'output.csv')
from outlier_101703382 import remove_outliers
remove_outliers('input.csv', 'output.csv',threshold)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file outlier_101703382-1.0.0.tar.gz.
File metadata
- Download URL: outlier_101703382-1.0.0.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.31.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d7b4b18ddc9b704ca37a2491b0c912784e3ce1f9e15736f8cf95fd128621afd
|
|
| MD5 |
2ba109acf1c0a93f78c6af058cc4b5cf
|
|
| BLAKE2b-256 |
1fd79715e7ee70b268e9d9d130769611eb9ee6580269545b9c26a4f53e035a51
|
File details
Details for the file outlier_101703382-1.0.0-py3-none-any.whl.
File metadata
- Download URL: outlier_101703382-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 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.31.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4f0f51e3382e83bba6063c37bf19f46123c7d0d4dc44d30a400923974d54d11
|
|
| MD5 |
3fbb08d0e0187ecdaf05a84bc15a809d
|
|
| BLAKE2b-256 |
1d603bde7706bd111f5f398650cb1e68f886b32aa77f711ea93a743d25797032
|