Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

iterate over batch of dict keys at once python

for chunk in chunked(big_dict.iteritems(), batch_size):
    func(chunk)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iterate #batch #dict #keys #python
ADD COMMENT
Topic
Name
1+7 =