defaultdict_accumulator

class coffea.processor.defaultdict_accumulator[source]

Bases: defaultdict, AccumulatorABC

A defaultdict with accumulator semantics

See collections.defaultdict for further info. It is assumed that the contents of the dict have accumulator semantics

Methods Summary

add(other)

Add another accumulator to this one in-place

identity()

Identity of the accumulator

Methods Documentation

add(other)[source]

Add another accumulator to this one in-place

identity()[source]

Identity of the accumulator

A value such that any other value added to it will return the other value