RenameAttribute
Rename specified key in input data
Subclass of Action. Type: Action[Dict[str, Any], Dict[str, Any]].
Module: core
Methods and properties
Main methods and properties
__init__
Arguments:
old_name (str): Current name.
new_name (str): New name.
name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.
execute
Rename key
Arguments:
input_data (Dict[str, Any]): Current data.
Raises:
InputDataKeyError: Key for renaming doesn't exist.
Returns:
Dict[str, Any]: Updated data.
Last updated