NotImplementedError doc groupby.py partial