code: def add_cohort(
      self, df, filter_variable, var_name="", operator="", value=""
  ):
      if (var_name != "") or (operator != "") or (value != ""):
          main_dataset, name, condition = self.filtered_dataframe(
              df, filter_variable, var_name, operator, value
          )
          self.cohorts[condition] = name
      else:
          main_dataset, condition = self.filtered_dataframe(
              df, filter_variable
          )
          self.cohorts[condition] = main_dataset
  
file_path: explainx/lib/cohort_analysis.py
imports: from imports import *
label_desc: Use image node_id 3 for calling the cohortAnalysis obj's underlying member method code with example usage: obj.add_cohort(df, filter_variable, var_name, operator, value) without return types