EmptyAggregationError()
Source¶
Bases: NumdaplotError
Raised when an Aggregation has no calculation and no row_count, so it would compute nothing.
Added in version 0.2.0
Examples:
import numdaplot as ndp
try:
ndp.Aggregation(group_by=["city"])
except ndp.EmptyAggregationError as error:
print(error)
# An Aggregation needs calculations, a row_count or both, got neither.