I am trying to remove columns from a dataframe with Multiindex, as for some of the columns my levels equal `NaN` (null). I tried to use dropna() but it works only for rows I assume:
[![enter image description here](https://i.stack.imgur.com/nRpvg.jpg)](https://i.stack.imgur.com/nRpvg.jpg)

dataframe is called 'test'
When I do `test.dropna()` is not working. I have 15 levels with IDs:

```
names=['ID14', 'ID13', 'ID12', 'ID11', 'ID10', 'ID9', 'ID8', 'ID7', 'ID6', 'ID5', 'ID4', 'ID3', 'ID2', 'ID1', 'ID0'])

```

Would you have any suggestions how to indicate to remove whole columns with null values in Multiindex (all 15 levels) as well as the corresponding rows? 

Thank you in advance! (I am a beginner)