File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -854,6 +854,7 @@ Deprecations
854
854
- Deprecated :meth: `Series.backfill ` in favor of :meth: `Series.bfill ` (:issue: `33396 `)
855
855
- Deprecated :meth: `DataFrame.pad ` in favor of :meth: `DataFrame.ffill ` (:issue: `33396 `)
856
856
- Deprecated :meth: `DataFrame.backfill ` in favor of :meth: `DataFrame.bfill ` (:issue: `33396 `)
857
+ - Deprecated :meth: `~pandas.io.stata.StataReader.close `. Use :class: `~pandas.io.stata.StataReader ` as a context manager instead (:issue: `49228 `)
857
858
858
859
.. ---------------------------------------------------------------------------
859
860
.. _whatsnew_200.prior_deprecations :
Original file line number Diff line number Diff line change @@ -1233,7 +1233,7 @@ def close(self) -> None:
1233
1233
"will be removed in a future version without notice. "
1234
1234
"Using StataReader as a context manager is the only supported method." ,
1235
1235
FutureWarning ,
1236
- stacklevel = 2 ,
1236
+ stacklevel = find_stack_level () ,
1237
1237
)
1238
1238
if self ._close_file :
1239
1239
self ._close_file ()
You can’t perform that action at this time.
0 commit comments