pandas: rename apply columns pre-join

This avoids naming overlaps when column names are the same in the
grouper and apply sections of a By operation