Skip to content

Commit f3ac2b7

Browse files
committed
stacklevel=2
1 parent 8e56e11 commit f3ac2b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/internals/api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import numpy as np
1616

1717
from pandas._libs.internals import BlockPlacement
18-
from pandas.util._exceptions import find_stack_level
1918

2019
from pandas.core.dtypes.common import pandas_dtype
2120
from pandas.core.dtypes.dtypes import (
@@ -94,7 +93,7 @@ def make_block(
9493
"make_block is deprecated and will be removed in a future version. "
9594
"Use public APIs instead.",
9695
DeprecationWarning,
97-
stacklevel=find_stack_level(),
96+
stacklevel=2,
9897
)
9998

10099
if dtype is not None:

0 commit comments

Comments
 (0)