Count number of rows with NaNs in Pandas DataFrame 🐼
Опубликовано: 30 Сентябрь 2024 на канале: ModernPython
83
5
In this quick video, we're going to learn how to count the number of rows in a Pandas DataFrame with NaNs. NaNs (not a number) are special cells that contain null values.
Use df.isna().sum() to sum up rows in each column that have NaN values.