Pandas provides ___________ function to check for the missing values in a DataFrame.
Pandas provides ___________ function to check for the missing values in a DataFrame.
Solution
✅ Correct Option: 1
The isnull() function returns a DataFrame of the same shape with True where a value is missing (NaN or None) and False elsewhere. Its alias isna() does the same job. Chaining df.isnull().sum() gives the count of missing values in each column.
Option 2: fillna() replaces missing values with a given value; it does not check for them.
Options 3 and 4: isnul() and is_null() are misspellings and do not exist in Pandas.
Related questions:
2026: 31 May Shift 1
2025: 14 May Shift 1
2026: 26 May Shift 1
2026: 13 May Shift 2