aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/citco_ops/remote.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/citco_ops/remote.py b/python/citco_ops/remote.py
index 9a6daa80..2dac0db2 100644
--- a/python/citco_ops/remote.py
+++ b/python/citco_ops/remote.py
@@ -73,9 +73,7 @@ class Report:
)
self._conn.commit()
if "strategy" in df.columns:
- df["strategy"] = (
- df["strategy"].str.replace("/M_", "/").str.replace("/SER_", "/")
- )
+ df["strategy"] = df["strategy"].str.replace("/M_|/SER_", "/", regex=True)
df.to_sql(self.table, dawn_engine, if_exists="append", index=False)