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)
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| outliers_navkiran-1.1.0.tar.gz | 2.9 kB | Without provenance | Details for outliers_navkiran-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| outliers_navkiran-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for outliers_navkiran-1.1.0-py3-none-any.whl |
Total release size: 7.2 kB
Security for outliers-navkiran 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.