How do I sort columns by sparsity?


#1

I have imported a CSV with 100 columns. 12 of these columns have no missing values, but most of the columns have only a few values.

I want to delete the columns with only a few values.

How can I do this easily? Is there a way to sort columns by sparsity?