aboutsummaryrefslogtreecommitdiffstats
path: root/python/baml.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/baml.py')
-rw-r--r--python/baml.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/baml.py b/python/baml.py
index 688ca3a1..ecf68b2a 100644
--- a/python/baml.py
+++ b/python/baml.py
@@ -3,6 +3,7 @@ import pandas as pd
from serenitas.utils.env import DAILY_DIR
from serenitas.utils.db import dawn_engine
import datetime
+from serenitas.analytics.dates import prev_business_day
from collateral.baml_isda import read_secure_message
logger = logging.getLogger(__name__)
@@ -58,6 +59,7 @@ def load_cash_report(workdate: datetime.date):
},
axis=1,
)
+ df["date"] = pd.to_datetime(df["date"])
df["fund"] = "SERCGMAST"
df.to_sql("cash_balances", dawn_engine, if_exists="append", index=False)