File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,7 @@ Bug fixes
249
249
~~~~~~~~~
250
250
251
251
- Bug in :meth: `DataFrame.to_html ` when using ``formatters=<list> `` and ``max_cols `` together. (:issue: `25955 `)
252
+ - Bug in :func: `pandas.core.generic.NDFrame.interpolate ` where specifying axis by name references variable before it is assigned (:issue: `29132 `)
252
253
253
254
Categorical
254
255
^^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -7023,13 +7023,16 @@ def interpolate(
7023
7023
"""
7024
7024
inplace = validate_bool_kwarg (inplace , "inplace" )
7025
7025
7026
+ axis = self ._get_axis_number (axis )
7027
+
7026
7028
if axis == 0 :
7027
7029
ax = self ._info_axis_name
7028
7030
_maybe_transposed_self = self
7029
7031
elif axis == 1 :
7030
7032
_maybe_transposed_self = self .T
7031
7033
ax = 1
7032
7034
else :
7035
+ ax = axis
7033
7036
_maybe_transposed_self = self
7034
7037
ax = _maybe_transposed_self ._get_axis_number (ax )
7035
7038
You can’t perform that action at this time.
0 commit comments