import
1import pandas as pd 2from pandas.io.json import json_normalize 3key = '伏せ' 4api = 'https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest?CMC_PRO_API_KEY=' 5api += key 6raw_data = requests.get(api).json() 7json_data = raw_data['data'] 8df0 = pd.DataFrame.from_dict(json_data) 9df0_normalized = json_normalize(df0['quote']) 10df1 = pd.concat([df0, df0_normalized], axis=1) 11df1 = df1.reindex(df1.index) 12df1.head() 13df1_selected = df1[['name','USD.market_cap']] 14df1_selected.head() 15
上記のコードを実行しようとしたのですが以下のエラーでつまづいています。
python(35979,0x114566e00)
1:*** mach_vm_map(size=18446744071885991936, flags: 100) failed (error code=3) 2python(35979,0x114566e00) malloc: *** set a breakpoint in malloc_error_break to debug 3init_dgelsd failed init 4Traceback (most recent call last): 5 File "/Users/**/Desktop/python_lesson/script.py/digrypto.py", line 3, in <module> 6 import pandas as pd 7 File "/Users/**/.pyenv/versions/3.8.9/lib/python3.8/site-packages/pandas/__init__.py", line 11, in <module> 8 __import__(dependency) 9 File "/Users/**/.pyenv/versions/3.8.9/lib/python3.8/site-packages/numpy/__init__.py", line 391, in <module> 10 raise RuntimeError(msg) 11RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, more information is available at https://numpy.org/doc/stable/user/building.html#accelerated-blas-lapack-libraries Otherwise report this to the vendor that provided NumPy. 12RankWarning: Polyfit may be poorly conditioned
numpyのバージョン変更やpythonのアンインストールを試みましたが変化なしです。
対処法はありますでしょうか?
ご教授宜しくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。