aboutsummaryrefslogtreecommitdiffstats
path: root/python/dtcc_sdr.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/dtcc_sdr.py')
-rw-r--r--python/dtcc_sdr.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/dtcc_sdr.py b/python/dtcc_sdr.py
index 435fb1da..b9476d56 100644
--- a/python/dtcc_sdr.py
+++ b/python/dtcc_sdr.py
@@ -58,7 +58,9 @@ def load_data():
]:
df[col] = df[col].astype("category")
df.ORIGINAL_DISSEMINATION_ID = df.ORIGINAL_DISSEMINATION_ID.astype("Int64")
- df.UNDERLYING_ASSET_1 = df.UNDERLYING_ASSET_1.str.rsplit(":", n=1, expand=True)[1]
+ df.UNDERLYING_ASSET_1 = df.UNDERLYING_ASSET_1.str.rsplit(":", n=1, expand=True)[
+ 1
+ ].astype("str")
df = df[~df.index.isin(df.ORIGINAL_DISSEMINATION_ID)]
df = df[df.ACTION != "CANCEL"]
del df["ASSET_CLASS"]