From 9f7767f63d087da95e601784b28c8900fd16c221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=93=E6=94=BF=E5=9D=87?= Date: Tue, 29 Oct 2024 08:56:14 +0800 Subject: [PATCH] REV: v1.2.0rc4 --- TejToolAPI/Map_Dask_API.py | 1 + 1 file changed, 1 insertion(+) diff --git a/TejToolAPI/Map_Dask_API.py b/TejToolAPI/Map_Dask_API.py index fb348f6..0b127e1 100644 --- a/TejToolAPI/Map_Dask_API.py +++ b/TejToolAPI/Map_Dask_API.py @@ -188,6 +188,7 @@ def _get_data(table, tickers, columns, start, end): dfgb = data_sets.groupby(['coid']) while any([i for i in dfgb['mdate'].apply(lambda x: x.diff()).values if i < 0]) : data_sets['diff'] = dfgb['mdate'].apply(lambda x: x.diff()).values + data_sets.fillna({'diff' : pd.Timedelta(days= 0 )} , inplace= True) data_sets = data_sets.loc[data_sets['diff'] >= pd.Timedelta(0)] dfgb = data_sets.groupby(['coid']) del data_sets['key3']