KeyError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).
Traceback:
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
exec(code, module.__dict__)
File "/app/ggprofit/app.py", line 515, in <module>
df[Cols.RANK_PARCENT_CATEGORY] = df[Cols.RANK_PARCENT].apply(categorize_rank_parcent)
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/core/frame.py", line 3896, in __getitem__
indexer = self.columns.get_loc(key)
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 3797, in get_loc
raise KeyError(key) from err
手元では動くが、デプロイするとKeyErrorになる