TST: GH3579, period index misbehaving in groupby

BUG: fix take platorm issue with PeriodIndex (GH3579)
Merge pull request #3591 from jreback/groupby_period_index

BUG: fix take platorm issue with PeriodIndex (GH3579)