Closed YPersion closed 1 month ago
环境: python 3.8.17 akshare版本 1.14.2 pandas版本 2.0.3 都更新至3.8 环境下的最高镜像版本
接口:futures_dce_position_rank 接口:get_cffex_rank_table 接口:get_shfe_rank_table 报错信息: Traceback (most recent call last): File "C:\Users\win10\AppData\Roaming\Python\Python38\site-packages\akshare\futures\cot.py", line 935, in futures_dce_position_rank temp_df = temp_df.map(lambda x: str(x).replace(",", "")) File "D:\Anaconda\envs\env_futuresproject\lib\site-packages\pandas\core\generic.py", line 5989, in getattr return object.getattribute(self, name) AttributeError: 'DataFrame' object has no attribute 'map' temp_df.map是什么版本的pandas接口,是不支持python 3.8环境了吗?
升级到最新版使用
什么的最新版本呢
akshare 已经更到最新了啊 要更python版本吗?
环境: python 3.8.17 akshare版本 1.14.2 pandas版本 2.0.3 都更新至3.8 环境下的最高镜像版本
接口:futures_dce_position_rank 接口:get_cffex_rank_table 接口:get_shfe_rank_table 报错信息: Traceback (most recent call last): File "C:\Users\win10\AppData\Roaming\Python\Python38\site-packages\akshare\futures\cot.py", line 935, in futures_dce_position_rank temp_df = temp_df.map(lambda x: str(x).replace(",", "")) File "D:\Anaconda\envs\env_futuresproject\lib\site-packages\pandas\core\generic.py", line 5989, in getattr return object.getattribute(self, name) AttributeError: 'DataFrame' object has no attribute 'map' temp_df.map是什么版本的pandas接口,是不支持python 3.8环境了吗?