How to check the missing values in Ipython notebook?

ipython

#1

As in R we can check the missing the value by the function is.na .I want to know how we can check the missing the values in Ipython notebook.
for example I have created a series in which there is missing value

In [25]: obj4
Out[25]:
California NaN
Ohio 35000
Oregon 16000
Texas 71000 

Is there a function for checking the missing value of California.


#2

@sid100158,

In Python, one of the method to check missing values is using isnull() function. It will return True if there is missing value else False.

Look at the below command, it will return all missing values of column “Investment.in.Mutual.Fund” of dataframe train.

train['Investment.in.Mutual.Fund'][train['Investment.in.Mutual.Fund'].isnull()==True]

Output:

0      NaN
362    NaN
396    NaN
1792   NaN
6139   NaN
6436   NaN
6714   NaN
7536   NaN
Name: Investment.in.Mutual.Fund, dtype: float64

Hope this helps!

Regards,
Sunil