From d10a06cadee1a852863484dba32d3d889e8dbc86 Mon Sep 17 00:00:00 2001 From: Saul Shanabrook Date: Fri, 17 Jul 2020 09:04:25 -0400 Subject: [PATCH] Remove deprecated warn kwarg for matplotlib use The warn param has been deprecated in 3.2.1: https://matplotlib.org/3.2.1/api/prev_api_changes/api_changes_3.2.0.html#matplotlib-use On the most recent matplotlib, this is failing for me with TypeError: use() got an unexpected keyword argument 'warn' --- pandas/util/_test_decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/util/_test_decorators.py b/pandas/util/_test_decorators.py index 25394dc6775d8..a4a1d83177c50 100644 --- a/pandas/util/_test_decorators.py +++ b/pandas/util/_test_decorators.py @@ -94,7 +94,7 @@ def safe_import(mod_name: str, min_version: Optional[str] = None): def _skip_if_no_mpl(): mod = safe_import("matplotlib") if mod: - mod.use("Agg", warn=True) + mod.use("Agg") else: return True