mirror of
https://github.com/microsoft/qlib.git
synced 2026-06-06 05:51:17 +08:00
fix position access error (#1267)
* fix position access error position is s sub attribute of _value error since commit(id:89972f6c6f9fa629b4f74093d4ba1e93c9f7a5e5) * lint with blank
This commit is contained in:
@@ -39,6 +39,7 @@ def parse_position(position: dict = None) -> pd.DataFrame:
|
||||
|
||||
result_df = pd.DataFrame()
|
||||
for _trading_date, _value in position.items():
|
||||
_value = _value.position
|
||||
# pd_date type: pd.Timestamp
|
||||
_cash = _value.pop("cash")
|
||||
for _item in ["now_account_value"]:
|
||||
|
||||
Reference in New Issue
Block a user