# sdv.tabular.copulas.GaussianCopula.sample_conditions¶

GaussianCopula.sample_conditions(conditions, batch_size=None, randomize_samples=True, output_file_path=None)[source]

Sample rows from this table with the given conditions.

Parameters
• conditions (list[sdv.sampling.Condition]) – A list of sdv.sampling.Condition objects, which specify the column values in a condition, along with the number of rows for that condition.

• batch_size (int or None) – The batch size to sample. Defaults to num_rows, if None.

• randomize_samples (bool) – Whether or not to use a fixed seed when sampling. Defaults to True.

• output_file_path (str or None) – The file to periodically write sampled rows to. Defaults to a temporary file, if None.

Returns

Sampled data.

Return type

pandas.DataFrame

Raises
• ConstraintsNotMetError – If the conditions are not valid for the given constraints.

• ValueError – If any of the following happens: * any of the conditions’ columns are not valid. * no rows could be generated.