KnowledgeBoat Logo
|

Informatics Practices

What is the difference between dropna() and fillna() ?

Python Pandas

3 Likes

Answer

The dropna() method is used to drop all rows that contain NaN values from a DataFrame. On the other hand, the fillna() method is used to replace all NaN values in a Pandas object with the specified value.

Answered By

3 Likes


Related Questions