Python 튜토리얼

Lv1 전처리 2/2 python 파이썬 결측치삭제,대체(dropna, fillna)

2021.06.14 16:49 8,144 조회

dropna() 를 사용하면, 결측치를 갖는 행을 DataFrame 객체에서 삭제합니다. 결측치를 처리하는 방법은 여러가지가 있지만, Lv1에서는 가장 쉽고 간단한 방법인 결측치를 가진 행을 제거 하는 방법에 실습해 보겠습니다.


또한 fillna() 를 사용해 모든 결측치를 인자값으로 대체할 수도 있습니다.

DataFrame.dropna()
DataFrame.fillna()



[Colab 실습 링크]


Colaboratory 를 처음 접한 분은 👉 Colab 이란?


⬅️ Lv1 | 전처리 | 1/2 | 데이터결측치확인하기(info())

Lv1 | 모델링 | 1/8 | Sklearn 패키지➡️

↩️ 오늘의 파이썬 리스트


👨‍💻데이스쿨 AI프로젝트👩🏻‍💻


#데이콘 #데이콘_101 #파이썬 #머신러닝 #딥러닝 #인공지능 #앙상블 #의사결정나무 #코랩 #데이터 #데이터분석 #판다스 #넘파이 #데이터사이언티스트 #AI #Python # Pandas #Numpy #lightgbm #read_csv #DACON #kaggle #sckit-learn

로그인이 필요합니다
0 / 1000
캣니스
2021.06.26 11:16

kyeongsoo
2021.06.28 01:45

ocial
2021.06.30 09:33

done

우철
2021.06.30 15:53

2021.07.02 21:02

쩐쭈나이차
2021.07.13 20:48

vv00
2021.07.18 17:23

임노아
2021.07.19 16:58

done

예온
2021.07.22 11:06

옐레나
2021.07.27 13:36

징징E
2021.07.27 16:56

놀란햄스터
2021.07.31 22:14

정장입고시퍼요
2021.08.02 14:51



dazzi
2021.08.02 20:43

분석을할상인가
2021.08.03 14:21

힝잉잉이
2021.08.04 00:05

done

테라스
2021.08.12 15:16

done

비회원
2021.08.12 20:14

annyeong
2021.08.13 14:48

train과 test 데이터의 결측치를 다르게 처리하는 이유가 있을까요?

해만이
2021.08.16 01:05

done

아아유진
2021.08.20 01:16

뿌요
2021.08.22 17:51

세라자데
2021.08.23 13:25

done

minakusi
2021.08.26 14:01

B-Jay
2021.08.31 20:20

그린티
2021.09.02 10:55

Willbee
2021.09.03 03:35

done

딩가딩가
2021.09.03 09:57

매미인턴
2021.09.03 17:54

done

지내니
2021.09.07 16:52

DSJY
2021.09.08 15:29

다욤
2021.09.12 18:18

Solhong
2021.09.17 16:27

✅test 데이터의 결측치를 인자값으로 대체한 이유가 궁금합니다.

지내니
2021.09.21 10:30

찬찬이
2021.09.23 16:26

Arniel
2021.09.24 19:53

done

neppy
2021.09.26 19:14

Dataseeker
2021.09.28 09:41

진리의 탐구자
2021.09.28 13:02

done

changhyeon
2021.09.28 15:47

done

향기
2021.09.29 19:39

ikmarch28
2021.10.01 13:46

줌돌
2021.10.03 23:27

쇠질하는코린이
2021.10.05 15:03

done

junghyuntaek
2021.10.09 15:02

HU
2021.10.09 19:22

done

MINGAHAHA
2021.10.25 16:10

왼쪽눈썹왁싱
2021.10.26 16:17

cori
2021.10.30 20:23

done

코딩코기
2021.10.31 14:40

done

가르치조림
2021.11.04 10:01

mage
2021.11.05 00:20

done

cberrys
2021.11.05 22:10

coddinggoldfish
2021.11.11 13:48

DDoS
2021.11.15 21:53

mission clear

jinius94
2021.11.16 11:38

아자액션가면
2021.11.16 11:57

yulia.
2021.11.16 18:27

letsbig
2021.11.21 10:20

done

breaktime
2021.11.24 14:11

히9
2021.11.24 17:10

gpflr
2021.11.26 16:05

done

sunnydays
2021.11.27 12:18

순무
2021.11.30 22:28

비회원
2021.12.01 23:09

😉

Hod0ri
2021.12.03 18:56

jbsh_MAD_SAIKYO
2021.12.03 20:32

done

지금노플
2021.12.07 10:17

sotanfdl
2021.12.09 14:25

maxpark
2021.12.12 16:40

V

maxpark
2021.12.12 16:41

삭제된 댓글입니다

GOKILDONG
2021.12.13 10:15

done

baby_perm
2021.12.13 19:26

done

하랴랴
2021.12.15 18:00

done

녹삭
2021.12.18 09:39

done

단발토끼쓰
2021.12.18 13:53

MMMMMMMMMMMMMMMMMMMM
2021.12.20 12:06

done

moran
2021.12.20 14:12

마앙고
2021.12.24 23:59

s_nana
2021.12.27 22:20

츠무
2021.12.28 16:57

암냠냠
2021.12.29 00:37

done

cm
2021.12.30 20:50

자퇴생
2022.01.02 22:07

done

글월
2022.01.03 17:40

done

yongE
2022.01.04 03:59

done

benelli
2022.01.05 01:17

done

201702018
2022.01.05 16:09

hijihyo
2022.01.07 00:44

done

jj150618
2022.01.09 03:23

djffjdEndEkd
2022.01.12 23:56

done

dbnoid
2022.01.13 13:28

✅ 

inuin
2022.01.13 13:35

done

isoy
2022.01.13 19:24

done

타콕
2022.01.14 17:19

소로소솜
2022.01.17 13:45

햄이
2022.01.20 00:56

done

bluemk00
2022.01.21 22:15

done

minelolo
2022.01.24 21:32

done

곽진섭
2022.01.24 23:30

done 

곽진섭
2022.01.24 23:34

done

호랭이띠
2022.01.25 12:35

done

윤도김
2022.01.28 11:22

done

해달이
2022.02.04 21:57

done

powerwook
2022.02.07 19:43



mansig
2022.02.08 12:10

찹쌀아빠
2022.02.09 18:41

daehan
2022.02.09 21:51

일렁
2022.02.12 16:20

동도서기
2022.02.16 20:23

준용_Choi
2022.02.17 01:34

done

navy
2022.02.17 21:25

구Dok
2022.02.19 20:02

땅콩누나
2022.02.19 22:56

YGstar
2022.02.21 23:02

done

으아아아악
2022.03.08 23:50

acebed
2022.03.10 17:57

done

piape
2022.03.11 17:53

민균
2022.03.11 19:15

done

하얀레몬
2022.03.13 16:22

done

kimgugu
2022.03.15 12:28

졔이
2022.03.16 22:33

비회원
2022.04.05 12:05

Kdata
2022.04.05 17:34

LS
2022.04.15 00:54

done

즈즈
2022.04.20 01:36

done

코딩백수
2022.04.21 17:21

done

닥터페퍼마시따
2022.04.22 15:38

지모
2022.04.27 23:14

done

보일러
2022.05.10 21:22

미키
2022.05.11 08:36

pp.m
2022.05.12 12:35

rkdls
2022.05.12 18:52

done

KIM2327
2022.05.16 07:31

48hour
2022.05.16 19:40

i do

이쑤
2022.05.17 14:14

done

krooner
2022.05.19 11:28

린스바른빡빡이
2022.05.20 13:16

yell
2022.05.21 06:40

done

deus_ex_marchina
2022.05.21 12:23

done

그린이
2022.05.25 08:35

khloee
2022.05.26 14:16

김현배
2022.05.26 16:41

라다나가
2022.05.29 21:51

트세연
2022.06.02 17:03

jaka
2022.06.05 14:53

kreimben
2022.06.18 17:18

살랑
2022.06.20 21:55

샤돌
2022.06.24 04:07

done

Wefe
2022.06.27 05:28

done

dnd404
2022.06.29 14:49

rhkdgml
2022.06.30 14:39

Y2J
2022.07.04 15:36

양현모든지쓸어버리겠다
2022.07.06 14:20

MINKYU
2022.07.18 18:07

nigel
2022.07.21 09:50

dnwne
2022.07.22 13:33

whdgus928
2022.07.25 13:56

done

forest_yoon
2022.07.26 05:29

엘라27
2022.08.01 22:14

done

부기온앤온
2022.08.05 01:11

SauberHands
2022.08.07 15:16

도비콘
2022.08.07 15:16

화이팅!

곽샘
2022.08.08 15:35

💹

간지나는패션
2022.08.09 15:00

done

ai_pedagogy
2022.08.11 15:22

😀

김귤
2022.08.14 00:31

growleb
2022.08.22 21:50

굿전
2022.08.29 10:00

완료

귤이조아
2022.08.30 00:16

skanehfud279
2022.09.07 11:40


pysung
2022.09.07 13:07

done

재상쓰
2022.09.15 21:30

done

나중에보자
2022.09.18 18:32

done

징징E
2022.09.19 15:28

check

kevinlee
2022.09.20 20:18

baeksh0330
2022.09.24 15:35

hugo_o
2022.09.24 16:47

새봄
2022.09.24 23:49

지수98
2022.09.29 18:28

1Epoch
2022.10.01 21:12

train과 test 결측치를 다르게 처리하는 이유에 대해 궁금합니다.

플랏
2022.10.01 21:18

done

엿장수
2022.10.10 15:35

긍정의힘
2022.10.12 20:41

고구마망
2022.10.18 10:23

🍠

gnt0000
2022.10.27 00:51

done

sk100
2022.10.31 18:07

done

nImoS
2022.10.31 23:25

 ✅

yun_
2022.11.03 17:12

done

keogh
2022.11.08 00:06

타콕
2022.11.14 22:57

엽스
2022.11.24 13:37

엽스
2022.11.24 13:41

savvyall
2022.11.28 11:31

done

규칙기반-형태소분석기
2022.12.19 10:55

하이랑
2022.12.26 00:59

액정깨진아이
2022.12.31 19:37

done

zeus999
2023.01.01 16:45

done

웅버
2023.01.04 17:11

유정잉
2023.01.04 17:32

ickhwan
2023.01.09 00:01

highllight
2023.01.11 16:23

ml.gil
2023.01.18 13:50

저예요저
2023.02.24 10:43

✅ 

래시포드
2023.03.06 17:06



래시포드
2023.03.06 17:06

래시포드
2023.03.06 17:06



래시포드
2023.03.06 17:07

김시옷
2023.05.29 15:32

done+

johnchoi44
2023.06.02 12:01

done

jws9490
2023.07.03 17:48

done

이믄서
2024.01.10 00:07