Examples
Show which entries in a DataFrame are NA.
import numpy as np
import pandas as pd
df = pd.DataFrame({'age': [6, 7, np.NaN],
'born': [pd.NaT, pd.Timestamp('1989-05-28'),
pd.Timestamp('1990-04-26')],
'name': ['Phantom', 'Batman', ''],
'toy': [None, 'Batmobile', 'Joker']})
df
df.isna()
Show which entries in a Series are NA.
s = pd.Series([6, 7, np.NaN])
s
s.isna()