Skip to content

Commit

Permalink
DEPR: Change stacklevel to 2 in DataFrame(mgr) deprecation (#58694)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloqeely authored Oct 30, 2024
1 parent d8905e4 commit 2ead198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def __init__(
"is deprecated and will raise in a future version. "
"Use public APIs instead.",
DeprecationWarning,
stacklevel=1, # bump to 2 once pyarrow 15.0 is released with fix
stacklevel=2,
)

data = data.copy(deep=False)
Expand Down

0 comments on commit 2ead198

Please sign in to comment.