Python 이상치 탐지

Jmnote (토론 | 기여)님의 2021년 8월 1일 (일) 18:20 판 (새 문서: ==개요== ;Python 이상치 탐지 <syntaxhighlight lang='python' notebook> import pandas as pd df = pd.read_csv("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris....)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

Python 이상치 탐지
import pandas as pd
df = pd.read_csv("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv")

Q1 = df.quantile(0.25)['sepal_width']
Q3 = df.quantile(0.75)['sepal_width']
IQR = Q3 - Q1
df[(df['sepal_width']<Q1-1.5*IQR) | (df['sepal_width']>Q3+1.5*IQR)]

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}