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
It raises an error using GreaterThan constraint with handling_strategy=transform.
It works fine for numerical data but fails for datetime data.
What I Did
Here's a reproducible example:
from sdv.tabular import GaussianCopula
from sdv.constraints import UniqueCombinations, GreaterThan, ColumnFormula
from sdv.demo import load_tabular_demo
data = load_tabular_demo('student_placements')
data.head()
date_constraint = GreaterThan(
low='start_date',
high='end_date',
handling_strategy='transform'
)
constraints = [
date_constraint,
]
model = GaussianCopula(constraints=constraints)
model.fit(data)
Error output:
TypeError: Addition/subtraction of integers and integer-arrays with TimedeltaArray is no longer supported. Instead of adding/subtracting `n`, use `n * obj.freq`
The text was updated successfully, but these errors were encountered:
Description
It raises an error using GreaterThan constraint with
handling_strategy=transform
.It works fine for numerical data but fails for datetime data.
What I Did
Here's a reproducible example:
Error output:
The text was updated successfully, but these errors were encountered: