File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -857,6 +857,7 @@ Deprecations
857857- Deprecated :meth: `Series.backfill ` in favor of :meth: `Series.bfill ` (:issue: `33396 `)
858858- Deprecated :meth: `DataFrame.pad ` in favor of :meth: `DataFrame.ffill ` (:issue: `33396 `)
859859- Deprecated :meth: `DataFrame.backfill ` in favor of :meth: `DataFrame.bfill ` (:issue: `33396 `)
860+ - Deprecated :meth: `~pandas.io.stata.StataReader.close `. Use :class: `~pandas.io.stata.StataReader ` as a context manager instead (:issue: `49228 `)
860861
861862.. ---------------------------------------------------------------------------
862863 .. _whatsnew_200.prior_deprecations :
Original file line number Diff line number Diff line change @@ -1233,7 +1233,7 @@ def close(self) -> None:
12331233 "will be removed in a future version without notice. "
12341234 "Using StataReader as a context manager is the only supported method." ,
12351235 FutureWarning ,
1236- stacklevel = 2 ,
1236+ stacklevel = find_stack_level () ,
12371237 )
12381238 if self ._close_file :
12391239 self ._close_file ()
You can’t perform that action at this time.
0 commit comments