diff --git a/qlib/contrib/report/analysis_model/analysis_model_performance.py b/qlib/contrib/report/analysis_model/analysis_model_performance.py index cac1f1b8eea..0d46c9d8af9 100644 --- a/qlib/contrib/report/analysis_model/analysis_model_performance.py +++ b/qlib/contrib/report/analysis_model/analysis_model_performance.py @@ -157,7 +157,7 @@ def _corr_series(x, method): _month_list = pd.date_range( start=pd.Timestamp(f"{_index.min()[:4]}0101"), end=pd.Timestamp(f"{_index.max()[:4]}1231"), - freq="1M", + freq = '1ME' if tuple(map(int, pd.__version__.split('.'))) >= (2, 2, 0) else '1M', ) _years = [] _month = [] diff --git a/up.sh b/up.sh new file mode 100755 index 00000000000..0ff6ee232ac --- /dev/null +++ b/up.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +git pull upstream main +git fetch upstream --tags --prune \ No newline at end of file