code: def cate_col(self, df):
      df = df.convert_dtypes()
      di = dict(df.dtypes)
      c = df.columns
  
      sample_df = pd.DataFrame(["a", "b", "c"])
      sample_df[1] = sample_df[0].astype("category")
      sample_df = sample_df.convert_dtypes()
      sample_df_dic = dict(sample_df.dtypes)
  
      cate = []
      for i in c:
          try:
              if di[i] == sample_df_dic[0]:
                  cate.append(i)
              elif di[i] == "category":
                  cate.append(i)
              else:
                  pass
          except:
              pass
  
      return cate
  
file_path: explainx/lib/rescale_numeric_feature.py
imports: from imports import *
label_desc: Use image node_id 4 for calling the get_cols obj's underlying member method code with example usage: obj.cate_col(df) and returns: cate