Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Machine Learning by (4k points)
How can I handle missing data or corrupted data in a dataset?
closed

1 Answer

0 votes
by (9.6k points)
edited by
 
Best answer

One of the most basic and easiest ways to deal with this is the removal of those rows and columns completely from the table. You can also replace the null spaces with values. 

The functions of the same are :

1. IsNull() and dropna() - To drop the block at once.

2. Fillna() - This will replace the wrong values for you.

Both these functions will be available when you import the pandas library.

Have a look at this video for a better understanding on pandas :

Browse Categories

...