Informatics Practices
What is the difference between dropna() and fillna() ?
Python Pandas
2 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
1 Like
Related Questions
What are missing values in a dataset ?
Write two methods generally used for handling missing values.
To iterate over horizontal subsets of DataFrame, …………… function may be used.
- iterate()
- iterrows()
- itercols()
- iteritems()
To iterate over vertical subsets of a DataFrame, …………… function may be used.
- iterate()
- iterrows()
- itercols()
- iteritems()