Skip to content

Commit

Permalink
BUG: Fix frame column validation in Python 2.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tibkiss committed Sep 19, 2017
1 parent 77922dd commit 381cbe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zipline/data/us_equity_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,8 @@ def _write(self, tablename, expected_dtypes, frame):
np.array([], dtype=list(expected_dtypes.items())),
)
else:
if frozenset(frame.columns) != viewkeys(expected_dtypes):
if frozenset(frame.columns) != \
frozenset(viewkeys(expected_dtypes)):
raise ValueError(
"Unexpected frame columns:\n"
"Expected Columns: %s\n"
Expand Down

0 comments on commit 381cbe1

Please sign in to comment.