Skip to content

Commit

Permalink
MAINT: Use df.resample().apply().
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Sanderson committed Aug 8, 2016
1 parent 6546eb7 commit 832b24c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zipline/data/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ def minute_to_session(minute_frame, calendar):
# Group minutes into their respective days. Note that this will
# create groups for all trading days in the desired range,
# including days with no minute data.
return minute_frame.resample(calendar.day,
how=_MINUTE_TO_SESSION_OHCLV_HOW)
return minute_frame.resample(calendar.day).apply(
_MINUTE_TO_SESSION_OHCLV_HOW
)

0 comments on commit 832b24c

Please sign in to comment.