Skip to content

Commit

Permalink
BLD: fix date formatting for Fixings import
Browse files Browse the repository at this point in the history
  • Loading branch information
attack68 committed Aug 7, 2023
1 parent 15ca90e commit 64eec8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rateslib/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def _load_csv(path):
if version.parse(pandas.__version__) < version.parse("2.0"):
# TODO remove when pandas min version is bumped to 2.0
df = read_csv(target)
df["reference_date"] = df["reference_date"].map(lambda x: datetime.strptime(x, "%d-%b-%Y"))
df["reference_date"] = df["reference_date"].map(lambda x: datetime.strptime(x, "%d-%m-%Y"))
df = df.set_index("reference_rate")
else:
df = read_csv(target, index_col=0, parse_dates=[0], date_format="%d-%m-%Y")
Expand Down

0 comments on commit 64eec8f

Please sign in to comment.