DVector.add_value_to_subset#

DVector.add_value_to_subset(segment, value, data)[source]#

Add a value to a subset segment in a DVector.

Parameters:
  • segment (str) – The target segment in self.Segmentation

  • value (int) – The value to add to the target subset

  • data (DataFrame) – The data associated with the new value to be added. This data should contain the same segment names as self.

Return type:

DVector