You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some transformers such as AnonymizedFaker and RegexGenerator that drop columns on the forward transform. It isn't possible to reverse transform only these columns because there is nothing to input.
To allow for this case, we should add a new method: create_anonymized_columns
Expected behavior
This method should belong to the HyperTransformer class and should be used only after fitting the data.
Parameters:
(required) num_rows: An integer > 0 that describes the number of rows to anonymize
(required) column_names: The list of column names to anonymize
Problem Description
There are some transformers such as
AnonymizedFaker
andRegexGenerator
that drop columns on the forward transform. It isn't possible to reverse transform only these columns because there is nothing to input.To allow for this case, we should add a new method:
create_anonymized_columns
Expected behavior
This method should belong to the
HyperTransformer
class and should be used only after fitting the data.Parameters:
num_rows
: An integer > 0 that describes the number of rows to anonymizecolumn_names
: The list of column names to anonymizeError Cases
HyperTransformer has not been fit yet. The HyperTransformer must be fit in order to use this method.
Required parameters:
num_rows
andcolumn_names
. Throw an error if these aren't present or if there are extra, unknown parameters.Parameter
num_rows
must be an integer >0.Parameter
column_names
must describe valid columns that are in the config and they must be assigned toAnonymizedFaker
orRegexGenerator
only.The text was updated successfully, but these errors were encountered: