Data Science, Condition Monitoring, Chemical Engineering.
__init__(self, data, threshold): self.data = data self.threshold = threshold self.group1 = None self.group2 = None def add_inputs(self, data, threshold): self.data = data self.threshold = threshold self.group1 = data[data.values > threshold] self.group2 = data[data.values <= threshold] return