Rename Events

Renames event names according to a mapping dictionary.

Usage

es.rename_events({
    "btn_click": "button_click",
    "pg_view": "page_view",
})

Parameters

ParameterTypeDescription
mappingdict[str, str]Dict mapping old event names to new names. Raises an error if a source event name does not exist.