Skip to content

Tag: dictionary

Filter nested dictionary in Python

I’m trying to remove key: value pairs from a nested dictionary within a nested dictionary, based on the value of a value within the double-nested dict. The dictionary looks something like this, and I want to filter out entire entries of people with an age under 25 years old (while I do not want to filte…