handling missing data Flashcards
(2 cards)
1
Q
Drop rows with any column having NA/null data.
A
df.dropna()
2
Q
Replace all NA/null data with value.
A
df.fillna(value)
Drop rows with any column having NA/null data.
df.dropna()
Replace all NA/null data with value.
df.fillna(value)