I used this code to find the percentage of missing values in each column:
df.isnull().mean().round(4).mul(100).sort_values(ascending=False)
The result shows all columns, which makes the output looks very long if you have a lot of columns and only need to know the percentage of the missing value ones. I would like to know how to remove all the columns that have no missing values for this code. Any other solutions are welcomed
Thanks for any answer.
You can save your nulls in an intermediate dataframe and use it for slicing:
example input:
output: