We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Port to Pandas 2.0
**Describe the bug**
when running `gandlf_run`, I am encountering:

`ERROR: 'DataFrame' object has no attribute 'append'`

**To Reproduce**

Train a model using `gandlf_run`.

I trained using `2d_rad_segmentation` data from `https://upenn.box.com/shared/static/y8162xkq1zz5555ye3pwadry2m2e39bs.zip` and the config file from samples in the repo `config_classification.yaml`

**Additional context**
- check the changelog of pandas [here](https://pandas.pydata.org/pandas-docs/stable/whatsnew/v2.0.0.html#removal-of-prior-version-deprecations-changes:~:text=Removed%20deprecated%20Series.append()%2C%20DataFrame.append()%2C%20use%20concat()%20instead%20(GH35407))
- The training runs successfully when downgrading `pandas` to `1.5.3`




--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 #!/usr/bin/env python
2 
3 """The setup script."""
4 
5 
6 import sys, re
7 from setuptools import setup, find_packages
8 from setuptools.command.install import install
9 from setuptools.command.develop import develop
10 from setuptools.command.egg_info import egg_info
11 
12 try:
13     with open("README.md") as readme_file:
14         readme = readme_file.read()
15 except Exception as error:
16     readme = "No README information found."
17     sys.stderr.write("Warning: Could not open '%s' due %s\n" % ("README.md", error))
18 
19 
20 class CustomInstallCommand(install):
21     def run(self):
22         install.run(self)
23 
24 
25 class CustomDevelopCommand(develop):
26     def run(self):
27         develop.run(self)
28 
29 
30 class CustomEggInfoCommand(egg_info):
31     def run(self):
32         egg_info.run(self)
33 
34 
35 try:
36     filepath = "GANDLF/version.py"
37     version_file = open(filepath)
38     (__version__,) = re.findall('__version__ = "(.*)"', version_file.read())
39 
40 except Exception as error:
41     __version__ = "0.0.1"
42     sys.stderr.write("Warning: Could not open '%s' due %s\n" % (filepath, error))
43 
44 requirements = [
45     "torch==1.13.1",
46     "black",
47     "numpy==1.22.0",
48     "scipy",
49     "SimpleITK!=2.0.*",
50     "SimpleITK!=2.2.1",  # https://github.com/mlcommons/GaNDLF/issues/536
51     "torchvision",
52     "tqdm",
53     "torchio==0.18.75",
54     "pandas",
55     "scikit-learn>=0.23.2",
56     "scikit-image>=0.19.1",
57     "setuptools",
58     "seaborn",
59     "pyyaml",
60     "tiffslide",
61     "matplotlib",
62     "requests>=2.25.0",
63     "pytest",
64     "coverage",
65     "pytest-cov",
66     "psutil",
67     "medcam",
68     "opencv-python",
69     "torchmetrics==0.5.1",  # newer versions have changed api for f1 invocation
70     "OpenPatchMiner==0.1.8",
71     "zarr==2.10.3",
72     "pydicom",
73     "onnx",
74     "torchinfo==1.7.0",
75     "segmentation-models-pytorch==0.3.2",
76     "ACSConv==0.1.1",
77     "docker",
78     "dicom-anonymizer",
79     "twine",
80     "zarr",
81     "keyring",
82 ]
83 
84 if __name__ == "__main__":
85     setup(
86         name="GANDLF",
87         version=__version__,
88         author="MLCommons",
89         author_email="gandlf@mlcommons.org",
90         python_requires=">=3.8",
91         packages=find_packages(),
92         cmdclass={
93             "install": CustomInstallCommand,
94             "develop": CustomDevelopCommand,
95             "egg_info": CustomEggInfoCommand,
96         },
97         scripts=[
98             "gandlf_run",
99             "gandlf_constructCSV",
100             "gandlf_collectStats",
101             "gandlf_patchMiner",
102             "gandlf_preprocess",
103             "gandlf_anonymizer",
104             "gandlf_verifyInstall",
105             "gandlf_configGenerator",
106             "gandlf_recoverConfig",
107             "gandlf_deploy",
108             "gandlf_optimizeModel",
109         ],
110         classifiers=[
111             "Development Status :: 3 - Alpha",
112             "Intended Audience :: Science/Research",
113             "License :: OSI Approved :: Apache Software License",
114             "Natural Language :: English",
115             "Operating System :: OS Independent",
116             "Programming Language :: Python :: 3.8",
117             "Programming Language :: Python :: 3.9",
118             "Programming Language :: Python :: 3.10",
119             "Topic :: Scientific/Engineering :: Medical Science Apps.",
120         ],
121         description=(
122             "PyTorch-based framework that handles segmentation/regression/classification using various DL architectures for medical imaging."
123         ),
124         install_requires=requirements,
125         license="Apache-2.0",
126         long_description=readme,
127         long_description_content_type="text/markdown",
128         include_package_data=True,
129         keywords="semantic, segmentation, regression, classification, data-augmentation, medical-imaging, clinical-workflows, deep-learning, pytorch",
130         zip_safe=False,
131     )
132
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@
     "torchvision",
     "tqdm",
     "torchio==0.18.75",
-    "pandas",
+    "pandas<2.0.0",
     "scikit-learn>=0.23.2",
     "scikit-image>=0.19.1",
     "setuptools",

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -51,7 +51,7 @@\n     \"torchvision\",\n     \"tqdm\",\n     \"torchio==0.18.75\",\n-    \"pandas\",\n+    \"pandas<2.0.0\",\n     \"scikit-learn>=0.23.2\",\n     \"scikit-image>=0.19.1\",\n     \"setuptools\",\n", "issue": "Port to Pandas 2.0\n**Describe the bug**\r\nwhen running `gandlf_run`, I am encountering:\r\n\r\n`ERROR: 'DataFrame' object has no attribute 'append'`\r\n\r\n**To Reproduce**\r\n\r\nTrain a model using `gandlf_run`.\r\n\r\nI trained using `2d_rad_segmentation` data from `https://upenn.box.com/shared/static/y8162xkq1zz5555ye3pwadry2m2e39bs.zip` and the config file from samples in the repo `config_classification.yaml`\r\n\r\n**Additional context**\r\n- check the changelog of pandas [here](https://pandas.pydata.org/pandas-docs/stable/whatsnew/v2.0.0.html#removal-of-prior-version-deprecations-changes:~:text=Removed%20deprecated%20Series.append()%2C%20DataFrame.append()%2C%20use%20concat()%20instead%20(GH35407))\r\n- The training runs successfully when downgrading `pandas` to `1.5.3`\r\n\r\n\r\n\n", "before_files": [{"content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport sys, re\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\ntry:\n    with open(\"README.md\") as readme_file:\n        readme = readme_file.read()\nexcept Exception as error:\n    readme = \"No README information found.\"\n    sys.stderr.write(\"Warning: Could not open '%s' due %s\\n\" % (\"README.md\", error))\n\n\nclass CustomInstallCommand(install):\n    def run(self):\n        install.run(self)\n\n\nclass CustomDevelopCommand(develop):\n    def run(self):\n        develop.run(self)\n\n\nclass CustomEggInfoCommand(egg_info):\n    def run(self):\n        egg_info.run(self)\n\n\ntry:\n    filepath = \"GANDLF/version.py\"\n    version_file = open(filepath)\n    (__version__,) = re.findall('__version__ = \"(.*)\"', version_file.read())\n\nexcept Exception as error:\n    __version__ = \"0.0.1\"\n    sys.stderr.write(\"Warning: Could not open '%s' due %s\\n\" % (filepath, error))\n\nrequirements = [\n    \"torch==1.13.1\",\n    \"black\",\n    \"numpy==1.22.0\",\n    \"scipy\",\n    \"SimpleITK!=2.0.*\",\n    \"SimpleITK!=2.2.1\",  # https://github.com/mlcommons/GaNDLF/issues/536\n    \"torchvision\",\n    \"tqdm\",\n    \"torchio==0.18.75\",\n    \"pandas\",\n    \"scikit-learn>=0.23.2\",\n    \"scikit-image>=0.19.1\",\n    \"setuptools\",\n    \"seaborn\",\n    \"pyyaml\",\n    \"tiffslide\",\n    \"matplotlib\",\n    \"requests>=2.25.0\",\n    \"pytest\",\n    \"coverage\",\n    \"pytest-cov\",\n    \"psutil\",\n    \"medcam\",\n    \"opencv-python\",\n    \"torchmetrics==0.5.1\",  # newer versions have changed api for f1 invocation\n    \"OpenPatchMiner==0.1.8\",\n    \"zarr==2.10.3\",\n    \"pydicom\",\n    \"onnx\",\n    \"torchinfo==1.7.0\",\n    \"segmentation-models-pytorch==0.3.2\",\n    \"ACSConv==0.1.1\",\n    \"docker\",\n    \"dicom-anonymizer\",\n    \"twine\",\n    \"zarr\",\n    \"keyring\",\n]\n\nif __name__ == \"__main__\":\n    setup(\n        name=\"GANDLF\",\n        version=__version__,\n        author=\"MLCommons\",\n        author_email=\"gandlf@mlcommons.org\",\n        python_requires=\">=3.8\",\n        packages=find_packages(),\n        cmdclass={\n            \"install\": CustomInstallCommand,\n            \"develop\": CustomDevelopCommand,\n            \"egg_info\": CustomEggInfoCommand,\n        },\n        scripts=[\n            \"gandlf_run\",\n            \"gandlf_constructCSV\",\n            \"gandlf_collectStats\",\n            \"gandlf_patchMiner\",\n            \"gandlf_preprocess\",\n            \"gandlf_anonymizer\",\n            \"gandlf_verifyInstall\",\n            \"gandlf_configGenerator\",\n            \"gandlf_recoverConfig\",\n            \"gandlf_deploy\",\n            \"gandlf_optimizeModel\",\n        ],\n        classifiers=[\n            \"Development Status :: 3 - Alpha\",\n            \"Intended Audience :: Science/Research\",\n            \"License :: OSI Approved :: Apache Software License\",\n            \"Natural Language :: English\",\n            \"Operating System :: OS Independent\",\n            \"Programming Language :: Python :: 3.8\",\n            \"Programming Language :: Python :: 3.9\",\n            \"Programming Language :: Python :: 3.10\",\n            \"Topic :: Scientific/Engineering :: Medical Science Apps.\",\n        ],\n        description=(\n            \"PyTorch-based framework that handles segmentation/regression/classification using various DL architectures for medical imaging.\"\n        ),\n        install_requires=requirements,\n        license=\"Apache-2.0\",\n        long_description=readme,\n        long_description_content_type=\"text/markdown\",\n        include_package_data=True,\n        keywords=\"semantic, segmentation, regression, classification, data-augmentation, medical-imaging, clinical-workflows, deep-learning, pytorch\",\n        zip_safe=False,\n    )\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport sys, re\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\ntry:\n    with open(\"README.md\") as readme_file:\n        readme = readme_file.read()\nexcept Exception as error:\n    readme = \"No README information found.\"\n    sys.stderr.write(\"Warning: Could not open '%s' due %s\\n\" % (\"README.md\", error))\n\n\nclass CustomInstallCommand(install):\n    def run(self):\n        install.run(self)\n\n\nclass CustomDevelopCommand(develop):\n    def run(self):\n        develop.run(self)\n\n\nclass CustomEggInfoCommand(egg_info):\n    def run(self):\n        egg_info.run(self)\n\n\ntry:\n    filepath = \"GANDLF/version.py\"\n    version_file = open(filepath)\n    (__version__,) = re.findall('__version__ = \"(.*)\"', version_file.read())\n\nexcept Exception as error:\n    __version__ = \"0.0.1\"\n    sys.stderr.write(\"Warning: Could not open '%s' due %s\\n\" % (filepath, error))\n\nrequirements = [\n    \"torch==1.13.1\",\n    \"black\",\n    \"numpy==1.22.0\",\n    \"scipy\",\n    \"SimpleITK!=2.0.*\",\n    \"SimpleITK!=2.2.1\",  # https://github.com/mlcommons/GaNDLF/issues/536\n    \"torchvision\",\n    \"tqdm\",\n    \"torchio==0.18.75\",\n    \"pandas<2.0.0\",\n    \"scikit-learn>=0.23.2\",\n    \"scikit-image>=0.19.1\",\n    \"setuptools\",\n    \"seaborn\",\n    \"pyyaml\",\n    \"tiffslide\",\n    \"matplotlib\",\n    \"requests>=2.25.0\",\n    \"pytest\",\n    \"coverage\",\n    \"pytest-cov\",\n    \"psutil\",\n    \"medcam\",\n    \"opencv-python\",\n    \"torchmetrics==0.5.1\",  # newer versions have changed api for f1 invocation\n    \"OpenPatchMiner==0.1.8\",\n    \"zarr==2.10.3\",\n    \"pydicom\",\n    \"onnx\",\n    \"torchinfo==1.7.0\",\n    \"segmentation-models-pytorch==0.3.2\",\n    \"ACSConv==0.1.1\",\n    \"docker\",\n    \"dicom-anonymizer\",\n    \"twine\",\n    \"zarr\",\n    \"keyring\",\n]\n\nif __name__ == \"__main__\":\n    setup(\n        name=\"GANDLF\",\n        version=__version__,\n        author=\"MLCommons\",\n        author_email=\"gandlf@mlcommons.org\",\n        python_requires=\">=3.8\",\n        packages=find_packages(),\n        cmdclass={\n            \"install\": CustomInstallCommand,\n            \"develop\": CustomDevelopCommand,\n            \"egg_info\": CustomEggInfoCommand,\n        },\n        scripts=[\n            \"gandlf_run\",\n            \"gandlf_constructCSV\",\n            \"gandlf_collectStats\",\n            \"gandlf_patchMiner\",\n            \"gandlf_preprocess\",\n            \"gandlf_anonymizer\",\n            \"gandlf_verifyInstall\",\n            \"gandlf_configGenerator\",\n            \"gandlf_recoverConfig\",\n            \"gandlf_deploy\",\n            \"gandlf_optimizeModel\",\n        ],\n        classifiers=[\n            \"Development Status :: 3 - Alpha\",\n            \"Intended Audience :: Science/Research\",\n            \"License :: OSI Approved :: Apache Software License\",\n            \"Natural Language :: English\",\n            \"Operating System :: OS Independent\",\n            \"Programming Language :: Python :: 3.8\",\n            \"Programming Language :: Python :: 3.9\",\n            \"Programming Language :: Python :: 3.10\",\n            \"Topic :: Scientific/Engineering :: Medical Science Apps.\",\n        ],\n        description=(\n            \"PyTorch-based framework that handles segmentation/regression/classification using various DL architectures for medical imaging.\"\n        ),\n        install_requires=requirements,\n        license=\"Apache-2.0\",\n        long_description=readme,\n        long_description_content_type=\"text/markdown\",\n        include_package_data=True,\n        keywords=\"semantic, segmentation, regression, classification, data-augmentation, medical-imaging, clinical-workflows, deep-learning, pytorch\",\n        zip_safe=False,\n    )\n", "path": "setup.py"}]}