Skip to content

Commit

Permalink
Fix frame_to_series, was always returning last row
Browse files Browse the repository at this point in the history
  • Loading branch information
dalejung authored and Eddie Hebert committed Feb 10, 2015
1 parent 502b26e commit 77c5279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zipline/history/history_container.py
Expand Up @@ -807,7 +807,7 @@ def frame_to_series(self, field, frame, columns=None):
if field in ['price', 'close_price']:
# shortcircuit for full last row
vals = frame[-1]
if ~np.all(np.isnan(vals)):
if np.all(~np.isnan(vals)):
return vals
return ffill(frame)[-1]
elif field == 'open_price':
Expand Down

0 comments on commit 77c5279

Please sign in to comment.