Skip to content

Commit 49b39af

Browse files
committed
FIX: Fix pandas.date_range param name
1 parent 2be86d2 commit 49b39af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

databento/common/bento.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,8 @@ def _build_product_id_index(self) -> Dict[dt.date, Dict[int, str]]:
678678
for ts in pd.date_range(
679679
start=interval.start_date,
680680
end=interval.end_date,
681-
inclusive="left",
681+
# https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.date_range.html
682+
**{"inclusive" if pd.__version__ >= "1.4.0" else "closed": "left"},
682683
):
683684
d: dt.date = ts.date()
684685
date_map: Dict[int, str] = product_id_index.get(d, {})

0 commit comments

Comments
 (0)