From 4327b21b73c27e504d6dbffad45c480a5428c8e1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 17:32:28 +0000 Subject: [PATCH 1/3] Initial plan From 22101502bdcf2c32650a46a7fa14bd914d083b54 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 17:39:58 +0000 Subject: [PATCH 2/3] Fix ValueError in ts_anomalies_stl by passing Series to STL instead of values Co-authored-by: ianhelle <13070017+ianhelle@users.noreply.github.com> --- msticpy/analysis/timeseries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msticpy/analysis/timeseries.py b/msticpy/analysis/timeseries.py index b9ef424f..f0ab7b3c 100644 --- a/msticpy/analysis/timeseries.py +++ b/msticpy/analysis/timeseries.py @@ -272,8 +272,8 @@ def ts_anomalies_stl(data: pd.DataFrame, **kwargs) -> pd.DataFrame: data = data[[data_column]] # STL method does Season-Trend decomposition using LOESS. - # Accepts timeseries dataframe - stl = STL(data[data_column].values, seasonal=seasonal, period=period) + # Accepts 1D timeseries data (pandas Series) + stl = STL(data[data_column], seasonal=seasonal, period=period) # Fitting the data - Estimate season, trend and residuals components. res = stl.fit() result = data.copy() From 38dbc784276abc25403aa9c1e31e11a53c07209a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 17:51:34 +0000 Subject: [PATCH 3/3] Add setuptools to pre-commit check_reqs_all dependencies Co-authored-by: ianhelle <13070017+ianhelle@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4380d775..de43ff7d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,4 +41,4 @@ repos: pass_filenames: False language: python types: [python] - additional_dependencies: ['packaging>=24.0'] + additional_dependencies: ['packaging>=24.0', 'setuptools']