sdv.sampling.Condition

class sdv.sampling.Condition(column_values, num_rows=1)[source]

Condition class.

This class represents a condition that is used for sampling.

column_values

A dictionary representing the desired conditions. A mapping of the column name to column value, which will be satisfied in this condition.

Type

dict

num_rows

The number of rows to generate for this condition. Defaults to 1.

Type

int

__init__(column_values, num_rows=1)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(column_values[, num_rows])

Initialize self.

get_column_values()

Get the column value mappings in this condition.

get_num_rows()

Get the desired number of rows for this condition.

Attributes

column_values

num_rows