From f732b970935ce9e0e62f368415bab870c1003868 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Fri, 10 Jan 2020 15:01:10 +0100 Subject: [PATCH] Backport PR #30878: DEPR: fix missing stacklevel in pandas.core.index deprecation --- pandas/core/index.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/core/index.py b/pandas/core/index.py index a9c8e6731a17e..8cff53d7a8b74 100644 --- a/pandas/core/index.py +++ b/pandas/core/index.py @@ -27,4 +27,5 @@ "pandas.core.index is deprecated and will be removed in a future version. " "The public classes are available in the top-level namespace.", FutureWarning, + stacklevel=2, )