Up to groupby, still mostly untested.