pandas drop empty columns

DataFrameName.dropna(axis=1, how='all', inplace=True)

Here is what the above code is Doing:
1. We are dropping the columns that have all NaN values.
2. We are dropping the columns that have more than 50% NaN values.
3. We are dropping the columns that have less than 5 unique values.
4. We are dropping the columns that have more than 50% unique values.
5. We are dropping the columns that have more than 50% zero values.