Skip to content
RED SAGSkills
easy5 pts · first answer countspandasmissing-data

Counting missing values in pandas

What does this code print?

import pandas as pd
import numpy as np

df = pd.DataFrame({'a': [1, np.nan, 3], 'b': [np.nan, np.nan, 6]})
print(df.isna().sum().tolist())
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions