Prompt Detail:
rodou, apresentou esse pequeno erro: KeyError: 'categoria'
Traceback:
File "c:\users\jesus\appdata\local\programs\python\python38\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "I:\a app\envs vehos\envs\exp\agnew1.py", line 82, in <module>
show_table(conn)
File "I:\a app\envs vehos\envs\exp\agnew1.py", line 23, in show_table
values = (row['nome'], row['valor'], row['data'], row['categoria'], row['id'])
File "c:\users\jesus\appdata\local\programs\python\python38\lib\site-packages\pandas\core\series.py", line 981, in __getitem__
return self._get_value(key)
File "c:\users\jesus\appdata\local\programs\python\python38\lib\site-packages\pandas\core\series.py", line 1089, in _get_value
loc = self.index.get_loc(label)
File "c:\users\jesus\appdata\local\programs\python\python38\lib\site-packages\pandas\core\indexes\base.py", line 3805, in get_loc
raise KeyError(key) from err
Add a comment