human
Delete Column in Pandas based on Condition
assistant
Here is some code to delete all columns in  DataFrame `df` that do not hold a non-zero value in its records

df.loc[:, ((df != 0).any(axis=0))]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.