I want to find the number of NaN in each column of my data so that I can drop a column if it has fewer NaN than some threshold. I looked but wasn’t able to find any function for this. value_counts is too slow for me because most of the values are distinct and I’m only interested in the NaN count.

32 s
32

Leave a Reply

Your email address will not be published. Required fields are marked *