DashAI.back.converters.CharacterReplacer
- class CharacterReplacer(char_to_replace: str, replacement_char: str)[source]
Converter that replaces specified characters or substrings in string columns. If ‘replacement_char’ is an empty string, ‘char_to_replace’ will be removed.
Methods
__init__(char_to_replace, replacement_char)changes_row_count()This converter does not change the number of rows.
fit(x[, y])Validates that the scoped columns (provided in x) are of string type.
get_metadata()Get metadata values for the current converter.
get_schema()Generates the component related Json Schema.
transform(x[, y])Replaces or removes characters in the target string columns of the dataset x.
validate_and_transform(raw_data)It takes the data given by the user to initialize the model and returns it with all the objects that the model needs to work.
Attributes
CATEGORYCOLORDESCRIPTIONDISPLAY_NAMEIMAGE_PREVIEWSHORT_DESCRIPTIONSUPERVISEDTYPEmetadata