aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/external_deriv_marks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/external_deriv_marks.py b/python/external_deriv_marks.py
index cb2eb201..5cee017e 100644
--- a/python/external_deriv_marks.py
+++ b/python/external_deriv_marks.py
@@ -26,7 +26,7 @@ def gs_navs(date: datetime.date = None, fund: str = "Serenitas"):
name = fname.name.replace("9972734", "")
if m := re.match(r"[^\d]*(\d{2}_.{3}_\d{4})", name):
(date_string,) = m.groups()
- date = datetime.datetime.strptime(date_string, "%d_%b_%Y")
+ date = datetime.datetime.strptime(date_string, "%d_%b_%Y").date()
df["fx"] = df["Not1Ccy"].apply(lambda s: get_fx(date, s))
df["local_navs"] = df["NPV (USD)"] / df["fx"]
df = df[