code: def encode_col(self, df, column_name):
      if column_name in self.column_names.values():
          df = self.encode_existing(df, column_name)
      else:
          df = self.encode_new(df, column_name)
  
      return df
  
file_path: explainx/lib/encode_decode_cat_col.py
imports: from imports import *
  from sklearn.preprocessing import OneHotEncoder
  import numpy
label_desc: Use image node_id 2 for calling the encode_decode_cat_col obj's underlying member method code with example usage: obj.encode_col(df, column_name) and returns: df