A library to detect and remove outliers using IQR.
Project description
IQR Outlier Detection Library
This Python package helps in detecting and removing outliers from a dataset using the Interquartile Range (IQR) method.
Features
- Detects outliers using IQR.
- Removes outliers from a dataset.
- Works with Pandas DataFrames and Series.
Installation
Clone the repository and install the package in editable mode:
pip install -e .
Usage
Import the package:
from iqr_outlier.detection import detect_outliers
from iqr_outlier.removal import remove_outliers
import pandas as pd
Example
# Sample dataset
data = pd.Series([10, 12, 14, 15, 18, 20, 22, 24, 30, 100])
# Detect outliers
outliers = detect_outliers(data)
print("Outliers:", outliers.tolist())
# Remove outliers
cleaned_data = remove_outliers(data)
print("Cleaned Data:", cleaned_data.tolist())
Project Structure
iqr_outliers/
│-- iqr_outlier/
│ │-- __init__.py
│ │-- detection.py
│ │-- removal.py
│-- setup.py
│-- test.py
│-- README.md
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
iqr_outlier-0.1.1.tar.gz
(1.8 kB
view details)
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 iqr_outlier-0.1.1.tar.gz.
File metadata
- Download URL: iqr_outlier-0.1.1.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb22e86962bfab193d6cb55f2ece318d05f98222447187dd7b3d2c0acec1fc26
|
|
| MD5 |
85a2d8ec87d7b5e8c9231fba63fed46c
|
|
| BLAKE2b-256 |
66fcf8a9aab99b720599d7107d6a875f1693e45e7c20df89643713d904265dff
|
File details
Details for the file iqr_outlier-0.1.1-py3-none-any.whl.
File metadata
- Download URL: iqr_outlier-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1bccd10a935869bffa82b45f9781848cd52d549e8bbf7b1dde45efd99663cce
|
|
| MD5 |
f35153b6a160e0c845f517cdfbfdc584
|
|
| BLAKE2b-256 |
02ef35b9fb43cf2ea5fc24ced16426ead530dbeddbe641ac99357484e3e4396f
|