I am able to drop empty columns using dropna()
with the current version of Pandas (0.23.4). The code I used is:
df.dropna(how='all', axis=1)
Looks like what is deprecated is passing multiple axes at once (i.e. df.dropna(how='all', axis = [0, 1]
). You can read here that they made this decision - "let's deprecate passing multiple axes, we don't do this for any other pandas functions".