Which pandas method removes the rows of a DataFrame that contain missing values?
Correct answer
D. dropna()
13 views
D. dropna()
13 views
dropna() returns a copy of the DataFrame with rows or columns holding missing values removed. isna() and notna() only detect nulls, while fillna() replaces them.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is D? Ask here and get an explanation.