SDMetrics icon indicating copy to clipboard operation
SDMetrics copied to clipboard

Semantic error in transforming datetime columns using HyperTransformer

Open avsolatorio opened this issue 2 years ago • 0 comments

The snippet below should be something like: data[field] = pd.Series(integers, data.index).

https://github.com/sdv-dev/SDMetrics/blob/c9967494126e6273d3d97ebf8c1b045861a3f126/sdmetrics/utils.py#L199

As currently implemented, the transformed data will incorrectly map the values to the wrong data if the index in data is not the same as the default index in pd.Series.

avsolatorio avatar Jan 25 '23 06:01 avsolatorio