akfamily / akshare

AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
https://akshare.akfamily.xyz
MIT License
8.8k stars 1.81k forks source link

AKShare 接口问题报告 #4949

Closed YPersion closed 1 month ago

YPersion commented 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环境了吗?

albertandking commented 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环境了吗?

升级到最新版使用

YPersion commented 1 month ago

什么的最新版本呢

YPersion commented 1 month ago

akshare 已经更到最新了啊 要更python版本吗?