Tinkerbell Glitter
[241203] ๊ฒฐ์ธก์น˜์™€ ์ด์ƒ์น˜
ยท
[๋‚ด๋ฐฐ์บ ] ๋ณธ ์บ ํ”„ (24.11.25 ~ 25.03.31) ๐Ÿƒ๐Ÿป‍โ™€๏ธ/ML & DL ๐Ÿง 
์–ด๋ ค์šด ๊ฐœ๋… ๋˜ ๋‚˜์™”๋‹ค~~์ •๋ฆฌ ๊ฐ€๋ณด์ž๊ณ ^^,,, ๊ฒฐ์ธก์น˜์™€ ์ด์ƒ์น˜ ๊ฒฐ์ธก์น˜(Missing Values)๋ž€,๋ˆ„๋ฝ๋œ ๊ฐ’/ ๋น„์–ด์žˆ๋Š” ๊ฐ’์„ ๋งํ•œ๋‹ค์ผ๋ฐ˜์ ์œผ๋กœNaN, None, NULL ๋กœ ํ‘œํ˜„๊ฒฐ์ธก์น˜ ํ™•์ธimport pandas as pdimport numpy as np# ๋ฐ์ดํ„ฐํ”„๋ ˆ์ž„ ์˜ˆ์‹œdata = { 'name' : ['Alice', 'Bob', 'Charlie', 'David'], 'age' : [25, 30, np.nan, 22], 'score' : [85, np.nan, 75, 90]}df = pd.DataFrame(data)# ๊ฒฐ์ธก์น˜ ํ™•์ธprint(df.isnull()) # ๊ฐ ๊ฐ’์ด ๊ฒฐ์ธก์น˜์ธ์ง€ ํ™•์ธprint(df.isnull().sum()) # ์—ด ๋ณ„ ๊ฒฐ์ธก์น˜ ๊ฐฏ์ˆ˜โ€‹ 1. ๊ฒฐ์ธก..