prune_dict

Contents

prune_dict#

prune_dict(dict_to_prune: dict, keys_to_prune: list) dict[source]#

Prune keys from a dictionary.

Parameters:
  • dict_to_prune (dict) – Dictionary to prune from

  • keys_to_prune (list) – List of keys to prune in the dictionary

Returns:

Dictionary with pruned keys

Return type:

dict