Skip to content

Commit bdd6c8c

Browse files
author
Scott Sanderson
committed
MAINT: Use df.resample().apply().
1 parent 2fcb307 commit bdd6c8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

zipline/data/resample.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ def minute_to_session(minute_frame, calendar):
4444
# Group minutes into their respective days. Note that this will
4545
# create groups for all trading days in the desired range,
4646
# including days with no minute data.
47-
return minute_frame.resample(calendar.day,
48-
how=_MINUTE_TO_SESSION_OHCLV_HOW)
47+
return minute_frame.resample(calendar.day).apply(
48+
_MINUTE_TO_SESSION_OHCLV_HOW
49+
)

0 commit comments

Comments
 (0)