ChoiceGenerator#
- class caf.toolkit.pandas_utils.random.ChoiceGenerator(name, length, values, all_values=False)[source]#
Generates data using a list of allowed values.
Attributes
Values to select for data values
Whether to ensure the resultant data contains all elements defined in values.
Name to be used as resultant series label.
Number of rows to create.
Methods
__init__
(name, length, values[, all_values])generate
(generator)Generate data using the generator provided and specifications define in the attributes.
Attributes Documentation