Python Pandas Filter Missing data Tutorial-11

preview_player
Показать описание
This video will explain how to filter missing data from series and dataframe data structure of pandas.

Visit complete course on Data Science with Python :

For All other visit my udemy profile at :

# coding: utf-8

# # Filter Missing data
# Data = pd.Series([1,np.NAN,4,5,np.NAN,6])
# data1 = pd.DataFrame([[5., 2.9, 8.], [1.5, np.NAN, np.NAN],[np.NAN, np.NAN, np.NAN], [np.NAN, 6.2, 23.]])

# # Row level Drop
import pandas as pd
import numpy as np

Data = pd.Series([1,np.NAN,4,5,np.NAN,6])
Data

data1 = pd.DataFrame([[5., 2.9, 8.], [1.5, np.NAN, np.NAN],[np.NAN, np.NAN, np.NAN], [np.NAN, 6.2, 23.]])
data1

# # Column Level Drop

data1

# # Filter Based on thresold
Рекомендации по теме
Комментарии
Автор

Excellent Videos. Please keep them coming. :)

avishekhbt
Автор

aight so im having trouble. My teacher wants me to find the code but I don't know how to filter it to just have the NaN show. All these tutorials are telling me to dropna which just gets rid of them but I need to filter it to show those NaN

anyone know of a code to do this?

jordanhensiek