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())Discussion 0
Join free to post in the discussion.
Related questions
- pandas mean with a missing valueData Scientist
- value_counts with normalizeData Scientist
- COUNT of a column with NULLsData Scientist
- groupby with transformData Scientist
- Row count after a mergeData Scientist
- groupby with a missing keyData Scientist
- NOT IN returns no rowsData Scientist
- Rolling mean at the edgesData Scientist