sdv.metadata.table.Table.transform

Table.transform(data, on_missing_column='error')[source]

Transform the given data.

Parameters
  • data (pandas.DataFrame) – Table data.

  • on_missing_column (str) – If the value is error, then a MissingConstraintColumnError is raised. If the value is drop, then the columns involved in the constraint that are present in data will be dropped.

Returns

Transformed data.

Return type

pandas.DataFrame

Raises

ConstraintsNotMetError – If the table data is not valid for the provided constraints.