diff --git a/bktest/export/quants.py b/bktest/export/quants.py index 8ab6a9f..3db8964 100644 --- a/bktest/export/quants.py +++ b/bktest/export/quants.py @@ -108,6 +108,7 @@ def finalize(self) -> None: bench['date'], format="%Y-%m-%d" ).dt.tz_localize(None) + bench.rename({'Close': self.benchmark_ticker}, axis=1, inplace=True) merged = history_df.merge(bench, on='date', how='inner') diff --git a/requirements.txt b/requirements.txt index 1f860cf..6d746c6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ click >= 8.0, <8.1.2 -pandas >=1.5, <2.0.0 +pandas >2.0.0 python-dateutil >=2.8.2, <2.8.3 tqdm >=4.48.0, <4.65.0 numpy >=1.23.0, <1.25.0 py_expression_eval >=0.3.9, <0.3.14 pyarrow >=11.0, <12.0 -quantstats==0.0.62 +quantstats ==0.0.77 pytest >=7.1.0, <7.3.0 yfinance >=0.2.54 python-dotenv >=0.20, <1.0.0