cubids.entity_sets.apply_entity_set_changes
- apply_entity_set_changes(summary, changes)[source]
Apply exact entity set substitutions to a summary dataframe in memory.
- Parameters:
summary (
pandas.DataFrame) – The summary to edit, modified in place.changes (
dict) – Substitutions fromload_entity_set_changes().
- Returns:
The summary, with
RenameEntitySetset on every matching row.- Return type:
- Raises:
ValueError – If no row’s planned entity set matched, which usually means a typo.