mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-13 17:42:42 +08:00
d34c4d28b6
The new TradingCalendar method is called `minute_index_to_session_labels`. It takes a DatetimeIndex of in-order market minutes and returns a DatetimeIndex of the corresponding sessions. The new method is approximately 100x faster than mapping `minute_to_session_label` over a large DatetimeIndex.