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.96k stars 1.84k forks source link

AKShare 接口问题报告:昨日股票涨停池api接口异常 #5077

Closed and0202 closed 1 month ago

and0202 commented 1 month ago

================================= 版本:'1.14.42' 接口api:ak.stock_zt_pool_previous_em(date='20240415') 异常情况: --> 135 tempdf.columns = [ 136 "序号", 137 "代码", 138 "", 139 "名称", 140 "最新价", 141 "涨停价", 142 "涨跌幅", 143 "成交额", 144 "流通市值", 145 "总市值", 146 "换手率", 147 "振幅", 148 "涨速", 149 "昨日封板时间", 150 "昨日连板数", 151 "所属行业", 152 "涨停统计", 153 ] 154 temp_df["涨停统计"] = ( 155 temp_df["涨停统计"].apply(lambda x: dict(x)["days"]).astype(str) 156 + "/" 157 + temp_df["涨停统计"].apply(lambda x: dict(x)["ct"]).astype(str) 158 ) 159 temp_df = temp_df[ 160 [ 161 "序号", (...) 177 ] 178 ]

File ~/anaconda3/envs/base_new/lib/python3.10/site-packages/pandas/core/generic.py:6310, in NDFrame.setattr(self, name, value) 6308 try: 6309 object.getattribute(self, name) -> 6310 return object.setattr(self, name, value) 6311 except AttributeError: 6312 pass

截屏2024-07-25 16 48 49

ValueError: Length mismatch: Expected axis has 1 elements, new values have 17 elements

albertandking commented 1 month ago

stock_zt_pool_previous_em

按文档说明操作