olá! estou tendo um problema no meu código, meu problema em questão é esse:
KeyError Traceback (most recent call last)
File ~\AppData\Roaming\Python\Python38\site-packages\pandas\core\computation\scope.py:233, in Scope.resolve(self, key, is_local)
232 if self.has_resolvers:
--> 233 return self.resolvers[key]
235 # if we're here that means that we have no locals and we also have
236 # no resolvers
File c:\Program Files\Python38\lib\collections\__init__.py:891, in ChainMap.__getitem__(self, key)
890 pass
--> 891 return self.__missing__(key)
File c:\Program Files\Python38\lib\collections\__init__.py:883, in ChainMap.__missing__(self, key)
882 def __missing__(self, key):
--> 883 raise KeyError(key)
KeyError: 'filmeid'
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
File ~\AppData\Roaming\Python\Python38\site-packages\pandas\core\computation\scope.py:244, in Scope.resolve(self, key, is_local)
240 try:
241 # last ditch effort we look in temporaries
242 # these are created when parsing indexing expressions
...
244 return self.temps[key]
245 except KeyError as err:
--> 246 raise UndefinedVariableError(key, is_local) from err
UndefinedVariableError: name 'filmeid' is not defined
porém ja tentei de tudo que possam imaginar, tentei chamar novamente o dataframe e não funcionou, chamei uma outra função pra fazer a visualização sem chamar a função que foi: filmes.head(2). Que também não funcionou, está dizendo que não está definido porem esta igual a como coloquei lá em cima, já não sei o que fazer. Alguem pode me ajudar?