diff options
| -rw-r--r-- | python/load_globeop_report.py | 5 | ||||
| -rw-r--r-- | python/recon_bowdst.py | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/python/load_globeop_report.py b/python/load_globeop_report.py index e5b50ed7..2c869631 100644 --- a/python/load_globeop_report.py +++ b/python/load_globeop_report.py @@ -131,7 +131,10 @@ def read_cds_report(f): df.columns = df.columns.str.lower().str.replace(" ", "_") df2.columns = df2.columns.str.lower().str.replace(" ", "_") df.calendar = df.calendar.str.replace(" ", "") - df = df.rename(columns={"direction": "buy/sell"}) + + df = df.rename( + columns={"direction": "buy/sell", "original_face_amount": "original_notional"} + ) df.roll_convention = df.roll_convention.str.title() df = df[df.strategy != "SER_TEST"] df.loc[df.strategy == "SERCGMAST__MBSCDS", "strategy"] = "MBSCDS" diff --git a/python/recon_bowdst.py b/python/recon_bowdst.py index 90d3ce52..ad3a6e29 100644 --- a/python/recon_bowdst.py +++ b/python/recon_bowdst.py @@ -100,7 +100,7 @@ def recon(hierarchy_file, date): pd.set_option("display.float_format", lambda x: "%.2f" % x) message += f"\n{name}: {pd.DataFrame(sums(kind), columns=['sums'])}" - # print(f"{name}: {sums(kind)}") + # print(f"{name}: {sums(kind)}" em.send_email( subject="Notional Totals", body=message, |
