aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/collateral/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/collateral/__main__.py b/python/collateral/__main__.py
index f4b959fc..a2398fc1 100644
--- a/python/collateral/__main__.py
+++ b/python/collateral/__main__.py
@@ -106,7 +106,7 @@ for fund in ("Serenitas", "Brinker", "BowdSt"):
df = pd.concat(df, names=["fund", "broker", "strategy"]).reset_index()
-df.strategy = df.strategy.str.replace("^(M_|SER_)?", "", 1)
+df.strategy = df.strategy.str.replace("^(M_|SER_)?", "", 1, regex=True)
df["fund"] = df.fund.map(fund_mapping)
df = df[["date", "broker", "strategy", "Amount", "Currency", "fund"]]