Skip to content

Commit 02dade9

Browse files
committed
CLN: removed long deprecated input param 'axis' in .replace()
1 parent 0ae7e90 commit 02dade9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5539,9 +5539,6 @@ def bfill(self, axis=None, inplace=False, limit=None, downcast=None):
55395539
55405540
.. versionchanged:: 0.23.0
55415541
Added to DataFrame.
5542-
axis : None
5543-
.. deprecated:: 0.13.0
5544-
Has no effect and will be removed.
55455542
55465543
See Also
55475544
--------
@@ -5749,15 +5746,11 @@ def bfill(self, axis=None, inplace=False, limit=None, downcast=None):
57495746

57505747
@Appender(_shared_docs['replace'] % _shared_doc_kwargs)
57515748
def replace(self, to_replace=None, value=None, inplace=False, limit=None,
5752-
regex=False, method='pad', axis=None):
5749+
regex=False, method='pad'):
57535750
inplace = validate_bool_kwarg(inplace, 'inplace')
57545751
if not is_bool(regex) and to_replace is not None:
57555752
raise AssertionError("'to_replace' must be 'None' if 'regex' is "
57565753
"not a bool")
5757-
if axis is not None:
5758-
warnings.warn('the "axis" argument is deprecated '
5759-
'and will be removed in'
5760-
'v0.13; this argument has no effect')
57615754

57625755
self._consolidate_inplace()
57635756

0 commit comments

Comments
 (0)