Examples
Show which entries in a DataFrame are not 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.notna()
Show which entries in a Series are not NA.
s = pd.Series([6, 7, np.NaN])
s
s.notna()