def get_obj_cols(df):
obj_cols = []<EOL>for idx, dt in enumerate(df.dtypes):<EOL><INDENT>if dt == '<STR_LIT:object>' or is_category(dt):<EOL><INDENT>obj_cols.append(df.columns.values[idx])<EOL><DEDENT><DEDENT>return obj_cols<EOL>
Returns names of 'object' columns in the DataFrame.