Handling Missing Values in Pandas Dataframe | GeeksforGeeks

preview_player
Показать описание
In this video, we're going to discuss how to handle missing values in Pandas. In Pandas DataFrame sometimes many datasets simply arrive with missing data, either because it exists and was not collected or it never existed. And as we can't provide null values to our Machine Learning model, we need to handle them properly. Now, let's get started.

00:00 Let's Start
01:44 Checking for Missing Values using isnull()
03:31 Filling Null Values Using fillna()
05:35 Filling Null Values Using fillna(method = 'pad')
07:05 Filling Null Values Using fillna(method = 'bfill')
11:41 Filling Null Values with the Mean, Max or Min of a Column
13:38 Dropping Null Values Using dropna()
16:12 Filling Null Values Using replace()
18:47 Filling Null Values Using interpolate()
21:50 Closing Notes

Check Out the Related Article:

This video is contributed by Akshit Madan.

Please Like, Comment, and Share the Video among your friends.

#python​​ #pandas​​ #dataframe​​ #datascience​​ #pythonpandas​​ #eda​​

Install our Android App:

If you wish, translate into the local language and help us reach millions of other geeks:

Follow us on our Social Media Handles -

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

geeksforgeeks never disappoints, thanks for this!

mrtbhdr
Автор

got a solution after about 30 mins of search.. Thank you made my day..

KeerthivasanSundararaman
Автор

Clear explanation and easy to understand. Thank you!

senglay
Автор

You, sir, are amazing and a savior to my project 🙏

darksector
Автор

Thanks brother.
The video was amazing, it cleared all my doubts.
Rise and shine🎉

-DanishShafi
Автор

Great content..Exactly what I have been looking for... Thanks

MrKbforex
Автор

Bhut acha conceptual content hai yrr. It's really awesome!!!

raumitraj
Автор

Thanks so much, this was really well explained and helpful.

mariamartin
Автор

Thanks for the clarification, helped in clear a problem I was stuck in

CuriousLearner_
Автор

Hi. very easy tutorial bro. As very beginner on python I can get it easy. Salute

lukmanmanggo
Автор

Thank you it is wonderful explanation. You answered my question perfectly.

erison
Автор

thank you the explanation is clear and helpful

nyashagracenhandara
Автор

very very clear thank you so much for this fantastic video...

as
Автор

Thank you .very nice and clear explanation .Easy for everyone to understand.thank you sir .

Gouthami-xreh
Автор

Very nice and helpful lesson. Thanks for sharing. 🎉🎉🎉

programsolve
Автор

Really amazing sir.
after that wanna enroll for DS course.

noorelahi
Автор

chala chala TQ anna nuvu chepindhi chala thoraga ardham chesukunanu and chala bhaga ardham iendhi

vndsanju
Автор

Addition:
1- In case, you want to **impute** the null values of numerical column, you can check the distribution of the values first; If it's not skewed, you may use mean. In case it is skewed, you may use median.
2- Generally, before we **delete** null values, we can check the proportion of the null values. If it's less than 5 % of the total dataset, we can opt to delete the null values.

However, always take the context of our data before making any decision with the null values. 😬

hmuhamadzulfitri
Автор

We have to take care of data types also before filling with any value

Ayanshedipelly