Pandas: Count number of non-NaN entries
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.
Leave a comment