Dear @ MaiAShaaban,
This is the trace of the issue causing your error:
2024-01-12T11:25:26.364000+00:00 Traceback (most recent call last):
2024-01-12T11:25:26.364000+00:00 File "/opt/conda/lib/python3.10/runpy.py", line 196, in _run_module_as_main
2024-01-12T11:25:26.364000+00:00 return _run_code(code, main_globals, None,
2024-01-12T11:25:26.364000+00:00 File "/opt/conda/lib/python3.10/runpy.py", line 86, in _run_code
2024-01-12T11:25:26.364000+00:00 exec(code, run_globals)
2024-01-12T11:25:26.364000+00:00 File "/opt/app/process.py", line 91, in
2024-01-12T11:25:26.364000+00:00 Lungcancerosprediction().predict()
2024-01-12T11:25:26.364000+00:00 File "/opt/app/process.py", line 54, in init
2024-01-12T11:25:26.364000+00:00 preprocess_csv = lung_mask_centerpoint(df_mask_stats)
2024-01-12T11:25:26.364000+00:00 File "/opt/app/preprocess.py", line 140, in lung_mask_centerpoint
2024-01-12T11:25:26.364000+00:00 x_mask_min_obj12 = np.min(df_mask_stats[["obj1_x_min", "obj2_x_min"]], axis=1)
2024-01-12T11:25:26.364000+00:00 File "/home/user/.local/lib/python3.10/site-packages/pandas/core/frame.py", line 3899, in getitem
2024-01-12T11:25:26.364000+00:00 indexer = self.columns._get_indexer_strict(key, "columns")[1]
2024-01-12T11:25:26.364000+00:00 File "/home/user/.local/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 6115, in _get_indexer_strict
2024-01-12T11:25:26.364000+00:00 self._raise_if_missing(keyarr, indexer, axis_name)
2024-01-12T11:25:26.364000+00:00 File "/home/user/.local/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 6176, in _raise_if_missing
2024-01-12T11:25:26.364000+00:00 raise KeyError(f"None of [{key}] are in the [{axis_name}]")
2024-01-12T11:25:26.364000+00:00 KeyError: "None of [Index(['obj1_x_min', 'obj2_x_min'], dtype='object')] are in the [columns]"