Estou tentando rodar o seguinte comando: plt.pie(contagem_de_lingua["total"], labels = contagem_de_lingua["original_language"])
Porém só retorna:
KeyError Traceback (most recent call last) ~\anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance) 3079 try: -> 3080 return self.engine.getloc(casted_key) 3081 except KeyError as err:
pandas_libs\index.pyx in pandas.libs.index.IndexEngine.getloc()
pandas_libs\index.pyx in pandas.libs.index.IndexEngine.getloc()
pandas_libs\hashtable_class_helper.pxi in pandas.libs.hashtable.PyObjectHashTable.getitem()
pandas_libs\hashtable_class_helper.pxi in pandas.libs.hashtable.PyObjectHashTable.getitem()
KeyError: 'original_language'
The above exception was the direct cause of the following exception:
KeyError Traceback (most recent call last) in ----> 1 plt.pie(contagem_de_lingua["total"], labels = contagem_de_lingua["original_language"])
~\anaconda3\lib\site-packages\pandas\core\frame.py in getitem(self, key) 3022 if self.columns.nlevels > 1: 3023 return self.getitemmultilevel(key) -> 3024 indexer = self.columns.get_loc(key) 3025 if is_integer(indexer): 3026 indexer = [indexer]
~\anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance) 3080 return self.engine.getloc(casted_key) 3081 except KeyError as err: -> 3082 raise KeyError(key) from err 3083 3084 if tolerance is not None:
KeyError: 'original_language'
PS1.: já reiniciei e executei todos comandos do projeto do inicio.
PS2.: utilizo o Jupyter Notebook (anaconda3)