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