sdv.constraints.Constraint.fit

Constraint.fit(table_data)[source]

Fit Constraint class to data.

If fit_columns_model is True, then this method will fit a GaussianCopula model to the relevant columns in table_data. Subclasses can overwrite this method, or overwrite the _fit method if they will not be needing the model to handle conditional sampling.

Parameters

table_data (pandas.DataFrame) – Table data.