text_plain_output_1.png
import pandas as pd

df = pd.read_csv('../input/epi_r.csv')

sorted(list(df.columns))

col_names = df.columns
bool_cols = []
nonbool_cols = []
for c in col_names:
    if len(df[c].unique()) == 2:
        bool_cols.append(c)
        df[c] = df[c].astype('bool')
    else:
        nonbool_cols.append(c)
print('{} non-boolean columns'.format(len(col_names) - len(bool_cols)))
print(sorted(nonbool_cols))