Anomaly Detection in Python
Bekhruz (Bex) Tuychiev
Kaggle Master, Data Science Content Creator
外れ値あり・なしの2通りで分析する。
# 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