MAINT: Guarantee bool dtype for can_trade.

This commit is contained in:
Scott Sanderson
2017-04-04 17:26:38 -04:00
parent f3aba5f281
commit fb3efc6d75
+1 -1
View File
@@ -486,7 +486,7 @@ cdef class BarData:
)
for asset in assets
]
return pd.Series(data=tradeable, index=assets)
return pd.Series(data=tradeable, index=assets, dtype=bool)
cdef bool _can_trade_for_asset(self, asset, dt, adjusted_dt, data_portal):
cdef object session_label