We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import akshare as ak # 调用接口获取数据 stock_comment_em_df = ak.stock_comment_em() # 将结果输出到CSV文件 stock_comment_em_df.to_csv("千股千评.csv", index=False,encoding=csv_encoding)
--------------------------------------------------------------------------- ImportError Traceback (most recent call last) Cell In[3], line 5 1 import akshare as ak 2 # print(ak.__version__) 3 4 # 调用接口获取数据 ----> 5 stock_comment_em_df = ak.stock_comment_em() 6 # stock_comment_em_df = ak.stock_comment_detail_zlkp_jgcyd_em(symbol="600000") 7 8 # 将结果输出到CSV文件 9 stock_comment_em_df.to_csv("千股千评.csv", index=False,encoding=csv_encoding) File [~\AppData\Roaming\Python\Python310\site-packages\akshare\stock_feature\stock_comment_em.py:42](https://file+.vscode-resource.vscode-cdn.net/d%3A/GithubProjects/%E8%82%A1%E7%A5%A8/akShare/~/AppData/Roaming/Python/Python310/site-packages/akshare/stock_feature/stock_comment_em.py:42), in stock_comment_em() 40 big_df = pd.DataFrame() 41 tqdm = get_tqdm() ---> 42 for page in tqdm(range(1, total_page + 1), leave=False): 43 params.update({"pageNumber": page}) 44 r = requests.get(url, params=params) File [c:\Python310\lib\site-packages\tqdm\notebook.py:234](file:///C:/Python310/lib/site-packages/tqdm/notebook.py:234), in tqdm_notebook.__init__(self, *args, **kwargs) 232 unit_scale = 1 if self.unit_scale is True else self.unit_scale or 1 233 total = self.total * unit_scale if self.total else self.total --> 234 self.container = self.status_printer(self.fp, total, self.desc, self.ncols) 235 self.container.pbar = proxy(self) 236 self.displayed = False File [c:\Python310\lib\site-packages\tqdm\notebook.py:108](file:///C:/Python310/lib/site-packages/tqdm/notebook.py:108), in tqdm_notebook.status_printer(_, total, desc, ncols) 99 # Fallback to text bar if there's no total 100 # DEPRECATED: replaced with an 'info' style bar 101 # if not total: (...) 105 106 # Prepare IPython progress bar 107 if IProgress is None: # #187 #451 #558 #872 --> 108 raise ImportError(WARN_NOIPYW) 109 if total: 110 pbar = IProgress(min=0, max=total) ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
The text was updated successfully, but these errors were encountered:
4. stock_comment_em
接口测试正常
Sorry, something went wrong.
升级到: 1.15.51 版本 接口调用正常了...
No branches or pull requests
The text was updated successfully, but these errors were encountered: