title: Which columns are binary in a Pandas DataFrame?
body: <p>I have a pandas dataframe with a large number of columns and I need to find which columns are binary (with values 0 or 1 only) without looking at the data. Which function should be used?</p>