implemented timeframes_from_periodindex()