Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

filter dict by list of keys python

dict_you_want = { your_key: old_dict[your_key] for your_key in your_keys }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filter #dict #list #keys #python
ADD COMMENT
Topic
Name
6+4 =