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.metadata.table

Table Creation

Table([name, field_names, field_types, …])

Table Metadata.

Table.from_dict(metadata_dict[, …])

Load a Table from a metadata dict.

Table.from_json(path)

Load a Table from a JSON.

Table.set_model_kwargs(model_name, model_kwargs)

Set the model kwargs used for the indicated model.

Table.set_primary_key(primary_key)

Set the primary key of this table.

Table.to_dict()

Get a dict representation of this metadata.

Table.to_json(path)

Dump this metadata into a JSON file.

Table Navigation

Table.get_dtypes([ids])

Get a dict with the dtypes for each field of the table.

Table.get_fields()

Get fields metadata.

Table.get_model_kwargs(model_name)

Return the required model kwargs for the indicated model.

Table Usage

Table.filter_valid(data)

Filter the data using the constraints and return only the valid rows.

Table.fit(data)

Fit this metadata to the given data.

Table.transform(data[, is_condition])

Transform the given data.

Table.reverse_transform(data)

Reverse the transformed data to the original format.