diff --git a/src/code42cli/output_formats.py b/src/code42cli/output_formats.py index b0f87a25..1cc06b25 100644 --- a/src/code42cli/output_formats.py +++ b/src/code42cli/output_formats.py @@ -16,6 +16,10 @@ from code42cli.util import find_format_width from code42cli.util import format_to_table +import warnings + +# remove this once we drop support for Python 3.7 +warnings.filterwarnings("ignore", category=FutureWarning) CEF_DEFAULT_PRODUCT_NAME = "Advanced Exfiltration Detection" CEF_DEFAULT_SEVERITY_LEVEL = "5" @@ -90,6 +94,8 @@ def _iter_table(self, dfs, columns=None, **kwargs): if df.empty: return # convert everything to strings so we can left-justify format + # applymap() is deprecated in favor of map() for pandas 2.0+ (method renamed) + # pandas only supports Python 3.8+, update this once we drop support for Python 3.7 df = df.fillna("").applymap(str) # set overrideable default kwargs kwargs = {