From 5ded030bfad472899afa97e39ae9c44fcfc4c826 Mon Sep 17 00:00:00 2001 From: rubikplanet <1106628276@qq.com> Date: Sat, 28 Oct 2023 05:25:44 +0800 Subject: [PATCH] =?UTF-8?q?1.=20setup=E4=B8=AD=E6=94=BE=E5=BC=803.10?= =?UTF-8?q?=E3=80=82=202.=20requirements.txt=E4=B8=AD=E7=A7=BB=E9=99=A4dem?= =?UTF-8?q?josn=EF=BC=8C=E5=AE=89=E8=A3=85=E4=B8=8D=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82=203.=20fix:=20pandas=E5=BA=9F?= =?UTF-8?q?=E5=BC=83append=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QUANTAXIS/QAData/data_resample.py | 6 +++--- requirements.txt | 1 - setup.py | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/QUANTAXIS/QAData/data_resample.py b/QUANTAXIS/QAData/data_resample.py index 52c4f026c..a6f9919a8 100755 --- a/QUANTAXIS/QAData/data_resample.py +++ b/QUANTAXIS/QAData/data_resample.py @@ -690,22 +690,22 @@ def QA_data_futuremin_resample( type_, offset="0min", closed='right', - loffset=type_ ).apply(CONVERSION) + part_1_res.index = part_1_res.index + to_offset(type_) part_2 = min_data.iloc[idx.indexer_between_time('13:30', '15:00')] part_2_res = part_2.resample( type_, offset="30min", closed='right', - loffset=type_ ).agg(CONVERSION) + part_2_res.index = part_2_res.index + to_offset(type_) part_3 = min_data.iloc[idx.indexer_between_time('21:00', '23:59')] part_3_res = part_3.resample( type_, offset="0min", closed='right', - loffset=type_ ).agg(CONVERSION) + part_3_res.index = part_3_res.index + to_offset(type_) return pd.concat( [part_1_res, part_2_res, diff --git a/requirements.txt b/requirements.txt index 3f52bbba7..2fa60d926 100755 --- a/requirements.txt +++ b/requirements.txt @@ -15,7 +15,6 @@ retrying seaborn>=0.11.1 attrs>=17.4.0 pyconvert>=0.6.3 -demjson>=2.2.4 janus==0.4.0 pyecharts_snapshot async_timeout diff --git a/setup.py b/setup.py index b19f4b28c..07d72e9c9 100755 --- a/setup.py +++ b/setup.py @@ -37,8 +37,8 @@ """ """ -if sys.version_info.major != 3 or sys.version_info.minor not in [5, 6, 7, 8, 9]: - print('wrong version, should be 3.5/3.6/3.7/3.8 version') +if sys.version_info.major != 3 or sys.version_info.minor not in [5, 6, 7, 8, 9, 10]: + print('wrong version, should be 3.5/3.6/3.7/3.8/3.9 version') sys.exit() with io.open('QUANTAXIS/__init__.py', 'rt', encoding='utf8') as f: