国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

python - pandas出毛病了,重裝也不行

瀏覽:117日期:2022-08-22 16:36:37

問題描述

Traceback (most recent call last): File 'C:UsersAdministratorAppDataRoamingPythonPython36site-packagespandasindexesbase.py', line 2134, in get_loc return self._engine.get_loc(key) File 'pandasindex.pyx', line 132, in pandas.index.IndexEngine.get_loc (pandasindex.c:4433) File 'pandasindex.pyx', line 154, in pandas.index.IndexEngine.get_loc (pandasindex.c:4279) File 'pandassrchashtable_class_helper.pxi', line 732, in pandas.hashtable.PyObjectHashTable.get_item (pandashashtable.c:13742) File 'pandassrchashtable_class_helper.pxi', line 740, in pandas.hashtable.PyObjectHashTable.get_item (pandashashtable.c:13696)KeyError: 0During handling of the above exception, another exception occurred:Traceback (most recent call last): File 'C:/Users/Administrator/PycharmProjects/untitled/test.py', line 5, in <module> code = today_data[0] File 'C:UsersAdministratorAppDataRoamingPythonPython36site-packagespandascoreframe.py', line 2059, in __getitem__ return self._getitem_column(key) File 'C:UsersAdministratorAppDataRoamingPythonPython36site-packagespandascoreframe.py', line 2066, in _getitem_column return self._get_item_cache(key) File 'C:UsersAdministratorAppDataRoamingPythonPython36site-packagespandascoregeneric.py', line 1386, in _get_item_cache values = self._data.get(item) File 'C:UsersAdministratorAppDataRoamingPythonPython36site-packagespandascoreinternals.py', line 3543, in get loc = self.items.get_loc(item) File 'C:UsersAdministratorAppDataRoamingPythonPython36site-packagespandasindexesbase.py', line 2136, in get_loc return self._engine.get_loc(self._maybe_cast_indexer(key)) File 'pandasindex.pyx', line 132, in pandas.index.IndexEngine.get_loc (pandasindex.c:4433) File 'pandasindex.pyx', line 154, in pandas.index.IndexEngine.get_loc (pandasindex.c:4279) File 'pandassrchashtable_class_helper.pxi', line 732, in pandas.hashtable.PyObjectHashTable.get_item (pandashashtable.c:13742) File 'pandassrchashtable_class_helper.pxi', line 740, in pandas.hashtable.PyObjectHashTable.get_item (pandashashtable.c:13696)KeyError: 0

這個(gè)錯(cuò)誤我也是一臉懵,安裝各種依賴庫(kù),卸載重裝都不行,求大神指導(dǎo)

問題解答

回答1:

推薦使用Python的發(fā)行版Anaconda,自帶各種數(shù)據(jù)處理包,不用額外安裝該發(fā)行版使用conda包管理工具,可以有效避免pip安裝導(dǎo)致的依賴錯(cuò)誤,無法安裝等問題如果覺得安裝包比較大,可以試用精簡(jiǎn)版的Miniconda,需要額外下載安裝。

如果使用conda下載速度比較慢,可以使用清華的鏡像,清華conda鏡像配置

標(biāo)簽: Python 編程
主站蜘蛛池模板: 色达县| 永年县| 关岭| 湖州市| 临邑县| 江孜县| 蒙自县| 平邑县| 新和县| 双流县| 沙坪坝区| 榆中县| 利川市| 乌拉特中旗| 舟山市| 阜南县| 开阳县| 冀州市| 阳高县| 偏关县| 松原市| 自贡市| 班玛县| 宝山区| 兴山县| 社旗县| 武冈市| 白玉县| 九江市| 安吉县| 泰安市| 景宁| 突泉县| 万盛区| 郎溪县| 武平县| 商河县| 静宁县| 安阳县| 顺平县| 南华县|