KeyError: "['AppDynamics|Agent|Agent Pid', 'Physical_type', 'Swap_type'] not found in axis"
Traceback:
File "/Users/hbrien/Software/AppDynamics-Data-Extractor/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 85, in exec_func_with_error_handling
result = func()
^^^^^^
File "/Users/hbrien/Software/AppDynamics-Data-Extractor/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 576, in code_to_exec
exec(code, module.dict)
File "/Users/hbrien/Software/AppDynamics-Data-Extractor/appd-extractor.py", line 999, in
all_nodes_merged_df.drop(columns=['agentConfig', 'AppDynamics|Agent|JVM Info', 'AppDynamics|Agent|Agent Pid', 'AppDynamics|Agent|Agent version', 'AppDynamics|Agent|Build Number', 'AppDynamics|Agent|Install Directory', 'AppDynamics|Agent|Machine Info', 'controllerConfig', 'cpus', 'ipAddresses', 'networkInterfaces', 'Physical_type', 'Swap_type', 'volumes'], inplace=True)
File "/Users/hbrien/Software/AppDynamics-Data-Extractor/venv/lib/python3.12/site-packages/pandas/core/frame.py", line 5581, in drop
return super().drop(
^^^^^^^^^^^^^
File "/Users/hbrien/Software/AppDynamics-Data-Extractor/venv/lib/python3.12/site-packages/pandas/core/generic.py", line 4788, in drop
obj = obj._drop_axis(labels, axis, level=level, errors=errors)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/hbrien/Software/AppDynamics-Data-Extractor/venv/lib/python3.12/site-packages/pandas/core/generic.py", line 4830, in _drop_axis
new_axis = axis.drop(labels, errors=errors)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/hbrien/Software/AppDynamics-Data-Extractor/venv/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 7070, in drop
raise KeyError(f"{labels[mask].tolist()} not found in [axis")]()
KeyError: "['AppDynamics|Agent|Agent Pid', 'Physical_type', 'Swap_type'] not found in axis" Traceback: File "/Users/hbrien/Software/AppDynamics-Data-Extractor/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 85, in exec_func_with_error_handling result = func() ^^^^^^ File "/Users/hbrien/Software/AppDynamics-Data-Extractor/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 576, in code_to_exec exec(code, module.dict) File "/Users/hbrien/Software/AppDynamics-Data-Extractor/appd-extractor.py", line 999, in
all_nodes_merged_df.drop(columns=['agentConfig', 'AppDynamics|Agent|JVM Info', 'AppDynamics|Agent|Agent Pid', 'AppDynamics|Agent|Agent version', 'AppDynamics|Agent|Build Number', 'AppDynamics|Agent|Install Directory', 'AppDynamics|Agent|Machine Info', 'controllerConfig', 'cpus', 'ipAddresses', 'networkInterfaces', 'Physical_type', 'Swap_type', 'volumes'], inplace=True)
File "/Users/hbrien/Software/AppDynamics-Data-Extractor/venv/lib/python3.12/site-packages/pandas/core/frame.py", line 5581, in drop
return super().drop(
^^^^^^^^^^^^^
File "/Users/hbrien/Software/AppDynamics-Data-Extractor/venv/lib/python3.12/site-packages/pandas/core/generic.py", line 4788, in drop
obj = obj._drop_axis(labels, axis, level=level, errors=errors)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/hbrien/Software/AppDynamics-Data-Extractor/venv/lib/python3.12/site-packages/pandas/core/generic.py", line 4830, in _drop_axis
new_axis = axis.drop(labels, errors=errors)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/hbrien/Software/AppDynamics-Data-Extractor/venv/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 7070, in drop
raise KeyError(f"{labels[mask].tolist()} not found in [axis")]()