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