I would like to fetch the column indices given that they meet a certain condition.
For instance, I would like to fetch the indices of all columns that contain 0. In this case, it would be [0,1] --> (column A and column B).
df = {'A': [0,1,2,3,4,5],
'B': [3,4,0,5,6,5],
'C': [1,2,3,4,5,6],
'D': [7,8,9,8,7,6]}
df = pd.DataFrame(df)
Thanks!