human
Find rows with non zero values in a subset of columns in pandas dataframe
assistant
Here is some code to find rows with non zero values in a subset of columns where `df.dtypes` is not equal to `object` in pandas dataframe

df.loc[(df.loc[:, (df.dtypes != object)] != 0).any(1)]

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