Python Pandas - Droping missing values based on different conditions|Dropna with multiple conditions

  Рет қаралды 4,612

Learnerea

Learnerea

Күн бұрын

Python Pandas - Droping missing values based on different conditions | Dropna() with multiple conditions
When it comes to data analysis, missing values are the first obstacle and it becomes really important for you to be efficient enought to deal with them. This is the first video in the series where we are going to explain you step by step, how to deal with the missing values as per your requirement.
In this first video, we have covered:
00:00 - Introduction
02:17 - Drop rows with at least one missing value | Filter all those rows which do not have any missing values at all
03:39 - Drop columns with at least one or any missing value | Filter all those columns which do not have any missing values at all
05:26 - Drop all those rows which are completly blank | Drop rows with all missing values
06:30 - Drop all those columns which are completly blank | Drop columns with all missing values
07:29 - Keep only those rows which have at least n number of non missing values | Drop all those rows which have more than n number of missing values
10:03 - Drop specific columns if those have missing values
you can download the data used in this video using:
File Name - DropNaSample.xlsx
URL - github.com/LEA...
#Learnerea #Python #Pandas #Pythontutorial #Pythononlinetraining #Pythonforbeginners #PythonProgramming #PythonMatplotlib #dropna

Пікірлер: 11
@mateomurillo4921
@mateomurillo4921 Жыл бұрын
Thanks!!! I reallly needed a video like this 🙏
@learnerea
@learnerea Жыл бұрын
Glad it was helpful
@OOM2M
@OOM2M Жыл бұрын
TUVM
@soby_a
@soby_a Жыл бұрын
Hey, great tut! I just wanted to learn, if there is a way i can del entire row if a specific row contains a "keyword". Like for eg: Iphone 14 demo Iphone 13 demo I need to remove all the prods containing a word demo. Thanks
@learnerea
@learnerea Жыл бұрын
consider the variable you want to apply the filter on, is named as "prod", you can try this - df[~df.prods.str.contains('demo')] to understand it in detail, I recommend you check this out - kzbin.info/www/bejne/fqKqaHqsppaXjas
@amritabhattacharya6344
@amritabhattacharya6344 Жыл бұрын
Hello sir. Thank you for the wonderful explanation. I had a doubt what if the question is : Drop missing values along the column "price". So what exactly do I have to drop here. Thank you for your hard work.
@learnerea
@learnerea Жыл бұрын
if I understood your question correctly then the answer is droping all those rows where it is missing in column "price" and you can do this by using - df['price'].dropna()
@amritabhattacharya6344
@amritabhattacharya6344 Жыл бұрын
@@learnerea thank you!!
@kabiland2043
@kabiland2043 2 жыл бұрын
dropna() got an unexpected keyword argument 'subset'
@kabiland2043
@kabiland2043 2 жыл бұрын
how to resolve this, pls tell
@learnerea
@learnerea 2 жыл бұрын
can you put your syntax here along with error message
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 62 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 102 МЛН
天使救了路飞!#天使#小丑#路飞#家庭
00:35
家庭搞笑日记
Рет қаралды 69 МЛН
How I'd Learn Data Analytics in 2024 | 3 Month Plan
11:42
Rohan Adus
Рет қаралды 355 М.
Handling Missing Values in Pandas Dataframe | GeeksforGeeks
22:17
GeeksforGeeks
Рет қаралды 127 М.
5 Excel Secrets You'll Be Embarrassed You Didn't Know
17:32
Excel Campus - Jon
Рет қаралды 153 М.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 266 М.
Solving real world data science tasks with Python Pandas!
1:26:07
Keith Galli
Рет қаралды 1,5 МЛН
Pandas for Data Science in 20 Minutes | Python Crash Course
23:06
Nicholas Renotte
Рет қаралды 120 М.
ПС 110/10. Кто то подключил "левак" 110000 вольт!?
0:34
Советы электрика
Рет қаралды 976 М.
Первый взгляд на Pixel 9 / 9 Pro / XL
21:01
Rozetked
Рет қаралды 637 М.
Запрещенный Гаджет для Авто с aliexpress 2
0:50
Тимур Сидельников
Рет қаралды 1,6 МЛН
Low Battery 🪫
0:10
dednahype
Рет қаралды 848 М.
Умный электрический помощник для штор
0:23
Склад дизайна
Рет қаралды 1,6 МЛН