modin.pandas.DataFrame.isnull

DataFrame.isnull() DataFrame[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/.tox/docs/lib/python3.9/site-packages/modin/pandas/dataframe.py#L1142-L1151)

DataFrame.isnull is an alias for DataFrame.isna.

Detect missing values.

Return a boolean same-sized object indicating if the values are NA. NA values, such as None or numpy.NaN, gets mapped to True values. Everything else gets mapped to False values. Characters such as empty strings ‘’ or numpy.inf are not considered NA values.

Returns:

Mask of bool values for each element in DataFrame that indicates whether an element is an NA value.

Return type:

DataFrame

Examples

>>> df = pd.DataFrame(dict(age=[5, 6, np.nan],
...                   born=[pd.NaT, pd.Timestamp('1939-05-27'),
...                         pd.Timestamp('1940-04-25')],
...                   name=['Alfred', 'Batman', ''],
...                   toy=[None, 'Batmobile', 'Joker']))
>>> df
   age       born    name        toy
0  5.0        NaT  Alfred       None
1  6.0 1939-05-27  Batman  Batmobile
2  NaN 1940-04-25              Joker
Copy
>>> df.isna()
     age   born   name    toy
0  False   True  False   True
1  False  False  False  False
2   True  False  False  False
Copy
Language: English