the method comes with confidence intervals as well, but not currently returning them. Are they useful?
currently, new_ages is optional. If its None (default), it uses year-increments. Might make sense to make this non-optional, and force user to give new age ranges.
The output is a tuple currently. Might make sense to rather give it as a dictionary of pandas dataframe
the new counts from the method are not integers. Should this function do the rounding? Note that the rounding can violate a basic consistency criteria (the total counts should remain invariant post re-grouping)
This feature regroups any count data for arbitrary age ranges using the R ungroup package. For example,
Some design questions:
new_ages
is optional. If its None (default), it uses year-increments. Might make sense to make this non-optional, and force user to give new age ranges.