/outlier-detection

Detect outliers from pandas dataframe using various statistical tools

Primary LanguageJupyter Notebook

Outlier Detection

Downloads Generic badge Generic badge

Detect outliers from pandas dataframe using various statistical tools

INSTALLATION AND USAGE

!pip install outlier-detection
from outlier_detection import detect_outliers_using_iqr
import pandas as pd

# Pandas Dataframe
data = pd.read_csv('titanic.csv')

# Detect outliers using IQR Method
# On overall data
detect_outliers_using_iqr(df, 'Fare')

# Based on factors data
detect_outliers_using_iqr(data, 'Fare', is_factor=True, factor='Sex')

Github Repository: https://github.com/bilalProgTech/outlier-detection.git

Tutorial Data Credit: https://www.kaggle.com/c/titanic