940 浏览
0

……\lib\site-packages\tqsdk\objs_not_entity.py:289: FutureWarning: In a future version, `df.iloc[:, i] = newvals` will attempt to set the values inplace instead of always setting a new array. To retain the old behavior, use either `df[df.columns[i]] = newvals` or, if columns are non-unique, `df.isetitem(i, newvals)`
self.loc[:, col] = Series([quotes[s].get(col, default_quote[col]) for s in self.__dict__[“_symbol_list”]])
……\lib\site-packages\tqsdk\objs_not_entity.py:282: FutureWarning: In a future version, `df.iloc[:, i] = newvals` will attempt to set the values inplace instead of always setting a new array. To retain the old behavior, use either `df[df.columns[i]] = newvals` or, if columns are non-unique, `df.isetitem(i, newvals)`
self.loc[:, col] = [_get_expire_rest_days(quotes[s][‘expire_datetime’], current_dt)

这两行要怎么改下?谢谢

李思恒 已回答的问题 2022年10月10日
0

这个报错目前看不出来,可以先退下版本或者找出具体的出错语句/error

李思恒 已回答的问题 2022年10月10日