You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The transform_new function of the scale transformer in the functime preprocessing module fails during execution. This issue arises when the function attempts to join the X DataFrame with the _mean DataFrame based on index columns (idx_cols) specified as 'time' and 'entity'. The join operation fails because _mean contains only the 'entity' column and lacks the 'time' column, leading to a key mismatch and an execution error.
To Reproduce
importpolarsasplfromfunctime.preprocessingimportscale# Load sample datay=pl.read_parquet("https://github.com/functime-org/functime/raw/main/data/commodities.parquet")
# Initialize the scale transformertransformer=scale()
# Fit the transformer_=y.pipe(transformer).collect()
# Attempt to transform new data and observe the errortransformer.transform_new(y).collect()
Expected behavior
The function would only join on columns that are present in _mean.
Desktop (please complete the following information):
OS: Ubuntu 22.04.4 LTS
Python version: 3.8.19
functime version: 0.9.5
The text was updated successfully, but these errors were encountered:
Describe the bug
The
transform_new
function of the scale transformer in the functime preprocessing module fails during execution. This issue arises when the function attempts to join theX
DataFrame with the_mean
DataFrame based on index columns (idx_cols
) specified as 'time' and 'entity'. The join operation fails because_mean
contains only the 'entity' column and lacks the 'time' column, leading to a key mismatch and an execution error.To Reproduce
Expected behavior
The function would only join on columns that are present in
_mean
.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: