Tushare很久没有重新安装环境了,今天运行了下,发现如下错误
cjl@cjl-Virtual-Machine:~/workspace/stock_assist/fetcher$ python test_fetcher.py
[Getting data:]#/home/cjl/.local/lib/python3.10/site-packages/tushare/stock/trading.py:135: FutureWarning: Passing literal json to 'read_json' is deprecated and will be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.
df = pd.DataFrame(pd.read_json(js, dtype={'code':object}),
#/home/cjl/.local/lib/python3.10/site-packages/tushare/stock/trading.py:135: FutureWarning: Passing literal json to 'read_json' is deprecated and will be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.
df = pd.DataFrame(pd.read_json(js, dtype={'code':object}),
Traceback (most recent call last):
File "/home/cjl/workspace/stock_assist/fetcher/test_fetcher.py