Skip to main content

A simple library that adds .outliers() method to pandas DataFrame for easy outlier detection.

Project description

🧠 pandas-outliers

pandas-outliers is a simple and powerful Python library that extends the functionality of Pandas DataFrames by adding an easy one-line method to detect outliers in your data.


🚀 Features

✅ Detect outliers in any numeric column with just one line
✅ Works with IQR (Interquartile Range), Z-score, and Isolation Forest methods
✅ 100% compatible with Pandas DataFrames
✅ Lightweight, beginner-friendly, and fast


💡 Installation

You can install it using pip:

pip install pandas-outliers

import pandas as pd
import pandas_outliers

# Sample data
data = pd.DataFrame({
    "age": [22, 23, 25, 45, 23, 24, 120],
    "salary": [25000, 27000, 26000, 28000, 1000000, 29000, 27500]
})

# Detect outliers in one line 👇
outliers = data.outliers()

print(outliers)

output
   age   salary
6   120  1000000


⚙️ Methods Supported

IQR (default)  detects values outside 1.5×IQR range

Z-score  detects data points beyond a given threshold

Isolation Forest  detects anomalies using machine learning

🧑‍💻 Author

Kiran Hamza
📍 Python & Data Science Enthusiast
💌 [Your Email or GitHub Profile Here]

🪪 License

This project is licensed under the MIT License  see the LICENSE
 file for details.

⭐ Tip: If you like this library, please star the repo or share it with your data science friends!


---

## 📜 2️⃣ LICENSE (MIT License — copy this into a file named `LICENSE`)
```text
MIT License

Copyright (c) 2025 Kiran Hamza

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights  
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell      
copies of the Software, and to permit persons to whom the Software is          
furnished to do so, subject to the following conditions:                       

The above copyright notice and this permission notice shall be included in     
all copies or substantial portions of the Software.                            

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR     
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,       
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE    
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER         
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,  
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE  
SOFTWARE.

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

pandas_outliers-1.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pandas_outliers-1.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pandas_outliers-1.0.1.tar.gz.

File metadata

  • Download URL: pandas_outliers-1.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pandas_outliers-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3edf5217000301432832c10e38be8b73b074fb29d8c21009409b75087d0cf9dc
MD5 967f278bff606f7a8a256aabb9000b2f
BLAKE2b-256 65608e28dc92c592e5d6446a805aa198e667f50ab410f9782b44116680688386

See more details on using hashes here.

File details

Details for the file pandas_outliers-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pandas_outliers-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6dca3745250f0404819614d9680a7f5eb32a7bd67b57d1eb1ae3c2bdb3a97f03
MD5 8a5b2c8bbb686cf4d34deed5fffddf36
BLAKE2b-256 4da4f279e2865fc330c28580f1b446700812f847a55c0cafcaabee4fe82e9239

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page