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.
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.
Table([name, field_names, field_types, …])
Table
Table Metadata.
Table.from_dict(metadata_dict[, …])
Table.from_dict
Load a Table from a metadata dict.
Table.from_json(path)
Table.from_json
Load a Table from a JSON.
Table.set_model_kwargs(model_name, model_kwargs)
Table.set_model_kwargs
Set the model kwargs used for the indicated model.
Table.set_primary_key(primary_key)
Table.set_primary_key
Set the primary key of this table.
Table.to_dict()
Table.to_dict
Get a dict representation of this metadata.
Table.to_json(path)
Table.to_json
Dump this metadata into a JSON file.
Table.get_dtypes([ids])
Table.get_dtypes
Get a dict with the dtypes for each field of the table.
dict
dtypes
Table.get_fields()
Table.get_fields
Get fields metadata.
Table.get_model_kwargs(model_name)
Table.get_model_kwargs
Return the required model kwargs for the indicated model.
Table.filter_valid(data)
Table.filter_valid
Filter the data using the constraints and return only the valid rows.
Table.fit(data)
Table.fit
Fit this metadata to the given data.
Table.transform(data[, is_condition])
Table.transform
Transform the given data.
Table.reverse_transform(data)
Table.reverse_transform
Reverse the transformed data to the original format.