Skip to content

Commit 637e00a

Browse files
shinny-liminshinny-chengzhi
authored andcommitted
修复:is_changing()判断dataframe不生效
1 parent c117c19 commit 637e00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tqsdk/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ def is_changing(self, obj, key=None) -> bool:
929929
return False
930930
for diff in self._diffs:
931931
# 如果传入key:生成一个dict(key:序号,value: 字段), 遍历这个dict并在_is_key_exist()判断key是否存在
932-
if isinstance(obj, pd.DataFrame) or isinstance(obj, pd.Series) and len(key) != 0:
932+
if (isinstance(obj, pd.DataFrame) or isinstance(obj, pd.Series)) and len(key) != 0:
933933
k_dict = {}
934934
for k in key:
935935
if k not in obj.index:

0 commit comments

Comments
 (0)