You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
示例代码:
futures_rule_df = ak.futures_rule(date=weekday_str)
报错信息:
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\akshare\futures\futures_rule.py", line 28, in futures_rule
big_df = pd.read_html(StringIO(r.text), header=1)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 1240, in read_html
return _parse(
^^^^^^^
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 1003, in _parse
raise retained
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 983, in _parse
tables = p.parse_tables()
^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 249, in parse_tables
tables = self._parse_tables(self._build_doc(), self.match, self.attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 598, in _parse_tables
raise ValueError("No tables found")
ValueError: No tables found
python-BaseException
The text was updated successfully, but these errors were encountered:
python版本:3.12
akshare版本:1.15.45
示例代码:
futures_rule_df = ak.futures_rule(date=weekday_str)
报错信息:
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\akshare\futures\futures_rule.py", line 28, in futures_rule
big_df = pd.read_html(StringIO(r.text), header=1)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 1240, in read_html
return _parse(
^^^^^^^
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 1003, in _parse
raise retained
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 983, in _parse
tables = p.parse_tables()
^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 249, in parse_tables
tables = self._parse_tables(self._build_doc(), self.match, self.attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 598, in _parse_tables
raise ValueError("No tables found")
ValueError: No tables found
python-BaseException
The text was updated successfully, but these errors were encountered: