diff options
Diffstat (limited to 'python/collateral/jpm.py')
| -rw-r--r-- | python/collateral/jpm.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/python/collateral/jpm.py b/python/collateral/jpm.py index 03ab5c4e..84fff107 100644 --- a/python/collateral/jpm.py +++ b/python/collateral/jpm.py @@ -92,13 +92,6 @@ def collateral(d, dawn_trades, *, fund="BowdSt", **kwargs): df["Currency"] = "USD" df = df.reset_index() df.columns = ["Strategy", "Amount", "Currency"] - df = df.append( - { - "Strategy": "M_CSH_CASH", - "Amount": -collat - df.Amount.sum(), - "Currency": "USD", - }, - ignore_index=True, - ) + df.loc[len(df.index)] = ["M_CSH_CASH", -collat - df.Amount.sum(), "USD"] df["date"] = d return df.set_index("Strategy") |
