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
This suggestion is to make it more clear that this will only be updating the default transformer for a data type if no transformer is specified for a field.
The following methods should be added:
update_field_data_types(field_data_types)
This method allows users to directly updatethe field_data_types dict.
field_data_types is the same format as the dict as in the initialization. It maps column names or tuples of column names to a data type.
get_field_data_types()
This method returns the field_data_types dict.
get_field_transformer_sequence(field_name)
This method would return a “pretty printed” version of the sequence of transformers for a field.
@kveerama@csala
Please take a look at these proposed changes to make sure we are all in agreement. I am particularly interested in if any of these should be moved to a separate issue and handled later.
The following name changes should be made for the
HyperTransformer
APIfield_types
→field_data_types
data_type_transformers
.data_type_transformers
→default_data_type_transformers
The following methods should be added:
update_field_data_types(field_data_types)
field_data_types
dict.field_data_types
is the same format as the dict as in the initialization. It maps column names or tuples of column names to a data type.get_field_data_types()
field_data_types
dict.get_field_transformer_sequence(field_name)
set_field_transformer_sequence(field_transformers_sequence)
field_transformers_sequence
will be a dictionary matching the format of the currentfield_transformers
dict ({full_field_name → transformer,...})set_first_transformers_for_fields(field_transformers)
field_transformers
will be a dict mapping field names to the initial transformer to use for the sequence.set_last_field_transformer(last_field_transformers)
last_field_transformers
will be a dict mapping field names to the final transformer to use in the sequenceget_default_data_type_transformers()
update_default_data_type_transformers(data_type_transformers)
data_type_transformers
will be a dict mapping data types to transformers. This will update the dict created during initialization, not overwrite it.The text was updated successfully, but these errors were encountered: