diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/bowdst.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/bowdst.py b/python/bowdst.py index 49af7ea6..16a90589 100644 --- a/python/bowdst.py +++ b/python/bowdst.py @@ -62,7 +62,6 @@ def load_val_report(workdate: datetime.date): "Counterparty", "Ticker with Exchange Code", "Ticker with Yellow Key", - "Acctg Status Update (EDT)", "Accounting Status", "Primary GSP Account", "Extended GSP Account Number", @@ -70,6 +69,10 @@ def load_val_report(workdate: datetime.date): ], axis=1, ) + if "Acctg Status Update (EDT)" in df: + del df["Acctg Status Update (EDT)"] + elif "Acctg Status Update (EST)" in df: + del df["Acctg Status Update (EST)"] df["Source Account Number"] = df["Source Account Number"].str[-4:].astype("int") df.columns = df.columns.str.replace(" ", "_").str.lower() df = df.rename( |
