(TIL) Pandas: Count number of non-NaN entries

less than 1 minute read

The count() method returns the number of non-NaN values in each column. Similarly, count(axis=1) returns the number of non-NaN values in each row.

Via StackOverflow.

Tags: ,

Categories:

Updated:

Comments