metasyn.MultiFrame

class metasyn.MultiFrame(metaframes, relations, dataframes=None)

Generation of multiple synthetic data frames.

This class implements the generation of multiple synthetic data frames with relations between columns.

Initialize the MultiFrame object.

Parameters:
  • metaframes (dict) – A dictionary containing metaframes to make a multi metaframe from. The keys are used to identify the tables, but can be freely chosen as strings. You can choose for example the keys to be the names of the tables or the files in which they are stored.

  • relations (list[ColumnRelation]) – A list of relations between columns, see ColumnRelations.

  • dataframes (Optional[dict[str, DataFrame]]) – Dataframes from which the metaframes were generated. By default None, in which case relations cannot be inferred from the data.

__init__(metaframes, relations, dataframes=None)

Initialize the MultiFrame object.

Parameters:
  • metaframes (dict) – A dictionary containing metaframes to make a multi metaframe from. The keys are used to identify the tables, but can be freely chosen as strings. You can choose for example the keys to be the names of the tables or the files in which they are stored.

  • relations (list[ColumnRelation]) – A list of relations between columns, see ColumnRelations.

  • dataframes (Optional[dict[str, DataFrame]]) – Dataframes from which the metaframes were generated. By default None, in which case relations cannot be inferred from the data.

Methods

__init__(metaframes, relations[, dataframes])

Initialize the MultiFrame object.

fit_dataframes(dataframes, relations[, ...])

Fit multiple dataframes to create a MultiFrame.

load(fp)

Load a MultiFrame from a GMF file.

load_json(fp[, validate])

Create a MultiFrame from a file with metadata.

save(fp)

Save the MultiFrame to a file.

save_json([fp, validate])

Save the MultiFrame object to a file.

synthesize([n])

Synthesize multiple tables.