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
Please indicate the following details about the environment in which you found the bug:
SDMetrics version: 0.10.1
Python version: Any
Operating System: Any
Error Description
When running DiagnosticReport or NewRowSynthesis by itself, we get the following error if a categorical column in the real_data is represented as category or something different than object.
Environment Details
Please indicate the following details about the environment in which you found the bug:
Error Description
When running
DiagnosticReport
orNewRowSynthesis
by itself, we get the following error if a categorical column in thereal_data
is represented ascategory
or something different thanobject
.Steps to reproduce
In order to reproduce this, we can use
category
asdata type
in thereal_data
, here is a short example in order to reproduce it:Additional context
This bug occurs because of the following
if else
statement:SDMetrics/sdmetrics/single_table/new_row_synthesis.py
Lines 120 to 123 in 585290f
In order to fix this we have to accurately detect the data type and use the proper representation of the object.
The text was updated successfully, but these errors were encountered: