Q. What is the purpose of the Pandas DataFrame method dropna()?

A
Add missing values
B
Remove rows with missing values
C
Replace missing values
D
Sort the DataFrame
Solution:

The dropna() method in Pandas removes rows or columns containing missing values (NaN).

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!