class_docstr: Defines the DataBalanceManager for finding data balance measures
  on a dataset.
class_docstr_tok: ["Defines","the","DataBalanceManager","for","finding","data","balance","measures","on","a","dataset","."]
docstr: Add data balance measures to be computed later.
  
  :param cols_of_interest: The names of the columns to be used
      for computing data balance measures.
  :type cols_of_interest: List[str]
docstr_tok: ["Add","data","balance","measures","to","be","computed","later",".",":","param","cols_of_interest",":","The","names","of","the","columns","to","be","used","for","computing","data","balance","measures",".",":","type","cols_of_interest",":","List","[","str","]"]
code: def add(self, cols_of_interest: List[str]):
      """
      Add data balance measures to be computed later.
  
      :param cols_of_interest: The names of the columns to be used
          for computing data balance measures.
      :type cols_of_interest: List[str]
      """
      self._cols_of_interest = cols_of_interest
  
      # Let user see exceptions early in add() before calling compute()
      self._validate()
      self._is_added = True
  
imports: import json
  import warnings
  from pathlib import Path
  from typing import Dict, List
  import numpy
  import pandas
  from responsibleai._interfaces import TaskType
  from responsibleai._internal.constants import DataBalanceManagerKeys
  from responsibleai._internal.constants import FileFormats, ListProperties, ManagerNames
  from responsibleai._tools.shared.state_directory_management import DirectoryManager
  from responsibleai.databalanceanalysis import AggregateBalanceMeasures, DistributionBalanceMeasures, FeatureBalanceMeasures
  from responsibleai.databalanceanalysis.data_balance_utils import prepare_df, transform_measures_to_dict
  from responsibleai.managers.base_manager import BaseManager
label_desc: Use image node_id 2 for calling the DataBalanceManager obj's underlying member method code with example usage: obj.add(cols_of_interest) without return types