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 接口问题报告 #4956

Closed YPersion closed 1 month ago

YPersion commented 1 month ago

请麻烦说清楚,什么的最新版本,akshare更新到哪个版本 还维护python3.8吗当前akshare 1.14.2版本,已经 是适配python3.8的最新版本了,我从官网上复制的更新库代码。 pip install akshare --upgrade --user -i https://pypi.tuna.tsinghua.edu.cn/simple

最后我想知道哪个版本的pandas,dataframe有map属性?那不是Series的属性吗?

环境: 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' t

albertandking commented 1 month ago

建议三者都到最新版本,新版的 pandas 不支持 Python 3.8

YPersion commented 1 month ago

是建议python升最新版本是吗

YPersion commented 1 month ago

python 3.12?? 新版本稳定吗 建议用什么版本的python啊