mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-02 12:10:23 +08:00
MAINT: Use df.resample().apply().
This commit is contained in:
1 parent
ec89402a3e
commit
ce76acce46
1 file changed
+1
-2
@@ -54,8 +54,7 @@ def minute_to_session(minute_frame, calendar):
|
||||
"""
|
||||
how = OrderedDict((c, _MINUTE_TO_SESSION_OHCLV_HOW[c])
|
||||
for c in minute_frame.columns)
|
||||
return minute_frame.groupby(calendar.minute_to_session_label).agg(
|
||||
how)
|
||||
return minute_frame.groupby(calendar.minute_to_session_label).agg(how)
|
||||
|
||||
|
||||
class DailyHistoryAggregator(object):
|
||||
|
||||
Reference in new issue
Block a user