diff --git a/analytics/analytics/detectors/threshold_detector.py b/analytics/analytics/detectors/threshold_detector.py index 4c71cc8..dc5320f 100644 --- a/analytics/analytics/detectors/threshold_detector.py +++ b/analytics/analytics/detectors/threshold_detector.py @@ -43,7 +43,7 @@ class ThresholdDetector(Detector): else: last_entry = dataframe_without_nans.iloc[-1] last_time = convert_pd_timestamp_to_ms(last_entry['timestamp']) - last_value = last_entry['value'] + last_value = float(last_entry['value']) segment = { 'from': last_time, 'to': last_time, 'params': { value: last_value } } if condition == '>':