Anomaly Detection in Python
Bekhruz (Bex) Tuychiev
Kaggle Master, Data Science Content Creator
Perform two analyses - with and without outliers.
# Calculate the percentiles percentile_first = google['Volume'].quantile(0.01) percentile_99th = google['Volume'].quantile(0.99)
# Trim google['Volume'] = google['Volume'].clip(percentile_first, percentile_99th)
google.replace(0, 100, inplace=True)
Anomaly Detection in Python