diff --git a/setup.py b/setup.py index 72965d45..4597166c 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ "keyrings.alt==3.2.0", "ipython>=7.16.3;python_version<'3.8'", "ipython>=8.10.0;python_version>='3.8'", - "pandas>=1.1.3", + "pandas>=2.1.0", "py42>=1.26.0", "setuptools>=66.0.0", ], diff --git a/src/code42cli/output_formats.py b/src/code42cli/output_formats.py index b0f87a25..e83e737d 100644 --- a/src/code42cli/output_formats.py +++ b/src/code42cli/output_formats.py @@ -90,7 +90,7 @@ def _iter_table(self, dfs, columns=None, **kwargs): if df.empty: return # convert everything to strings so we can left-justify format - df = df.fillna("").applymap(str) + df = df.fillna("").map(str) # set overrideable default kwargs kwargs = { "index": False, diff --git a/tox.ini b/tox.ini index e8cea7f8..3e731e8d 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ deps = pytest == 7.2.0 pytest-mock == 3.10.0 pytest-cov == 4.0.0 - pandas >= 1.1.3 + pandas >= 2.1.0 pexpect == 4.8.0 setuptools >= 66.0.0