ENH: don't make unnecessary data copy in groupby