pipeline.domain.datatype.attrgetter
- class attrgetter(attr, /, *attrs)[source]
Bases:
objectReturn a callable object that fetches the given attribute(s) from its operand. After f = attrgetter('name'), the call f(r) returns r.name. After g = attrgetter('name', 'date'), the call g(r) returns (r.name, r.date). After h = attrgetter('name.first', 'name.last'), the call h(r) returns (r.name.first, r.name.last).
Methods
- __call__(*args, **kwargs)
Call self as a function.