Up to groupby (which is tested, but some earlier ones are not)