Danger

You are looking at the documentation for an older version of the SDV! We are no longer supporting or maintaining this version of the software

Click here to go to the new docs pages.

sdv.constraints.OneHotEncoding.fit_transform

OneHotEncoding.fit_transform(table_data)

Fit this Constraint to the data and then transform it.

Parameters

table_data (pandas.DataFrame) – Table data.

Returns

Transformed data.

Return type

pandas.DataFrame