code: def encode_categorical_var(self, df):
      if self.get_col == None:
          self.get_col = get_cols()
          num_col, self.cat_col = self.get_col.get_cate_numer_col(df)
  
      if self.encode == None:
          self.encode = encode_decode_cat_col()
  
      for col_name in self.cat_col:
          df = self.encode.encode_col(df, col_name)
  
      return df
  
file_path: explainx/lib/protodash.py
imports: from imports import *
  from encode_decode_cat_col import *
  from rescale_numeric_feature import *
  from PDASH import ProtodashExplainer
  from PDASH_utils import *
label_desc: Use image node_id 2 for calling the protodash obj's underlying member method code with example usage: obj.encode_categorical_var(df) and returns: df