ts_shape.events.quality.tolerance_deviation
¤
Classes:
-
ToleranceDeviationEvents
–Inherits from Base and processes DataFrame data for specific events, comparing tolerance and actual values.
ToleranceDeviationEvents
¤
ToleranceDeviationEvents(dataframe: DataFrame, tolerance_column: str, actual_column: str, tolerance_uuid: str, actual_uuid: str, event_uuid: str, compare_func: Callable[[Series, Series], Series] = ge, time_threshold: str = '5min')
Bases: Base
Inherits from Base and processes DataFrame data for specific events, comparing tolerance and actual values.
Methods:
-
get_dataframe
–Returns the processed DataFrame.
-
process_and_group_data_with_events
–Processes DataFrame to apply tolerance checks, group events by time, and generate an events DataFrame.
Source code in src/ts_shape/events/quality/tolerance_deviation.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
get_dataframe
¤
get_dataframe() -> DataFrame
Returns the processed DataFrame.
Source code in src/ts_shape/utils/base.py
34 35 36 |
|
process_and_group_data_with_events
¤
process_and_group_data_with_events() -> DataFrame
Processes DataFrame to apply tolerance checks, group events by time, and generate an events DataFrame.
Returns:
-
DataFrame
–pd.DataFrame: A DataFrame of processed and grouped event data.
Source code in src/ts_shape/events/quality/tolerance_deviation.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|