468 浏览
0

tqsdk3.4.10运行没有问题.只要升级tqsdk到3.4.11或者3.5.0,就会有如下报错:

Traceback (most recent call last):
File “C:\Program Files\JetBrains\PyCharm Community Edition 2023.3.2\plugins\python-ce\helpers\pydev\pydevconsole.py”, line 364, in runcode
coro = func()
^^^^^^
File “<input>”, line 65, in <module>
File “C:\Users\Ttrade\AppData\Roaming\Python\Python311\site-packages\pandas\core\series.py”, line 4760, in apply
).apply()
^^^^^^^
File “C:\Users\Ttrade\AppData\Roaming\Python\Python311\site-packages\pandas\core\apply.py”, line 1207, in apply
return self.apply_standard()
^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Ttrade\AppData\Roaming\Python\Python311\site-packages\pandas\core\apply.py”, line 1287, in apply_standard
mapped = obj._map_values(
^^^^^^^^^^^^^^^^
File “C:\Users\Ttrade\AppData\Roaming\Python\Python311\site-packages\pandas\core\base.py”, line 921, in _map_values
return algorithms.map_array(arr, mapper, na_action=na_action, convert=convert)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Ttrade\AppData\Roaming\Python\Python311\site-packages\pandas\core\algorithms.py”, line 1814, in map_array
return lib.map_infer(values, mapper, convert=convert)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “lib.pyx”, line 2917, in pandas._libs.lib.map_infer
File “<input>”, line 65, in <lambda>
TypeError: can’t compare offset-naive and offset-aware datetimes

李思恒 已回答的问题 2024年1月23日
0

有没有最简代码呢,退版本是不是就正常了?我的qq是532428198

李思恒 已回答的问题 2024年1月23日