replace timeframes_from_periodindex with TimeFrameGroup constructor