@@ -6118,7 +6118,7 @@ def bfill(self, axis=None, inplace=False, limit=None, downcast=None):
6118
6118
value to use for each column (columns not in the dict will not be
6119
6119
filled). Regular expressions, strings and lists or dicts of such
6120
6120
objects are also allowed.
6121
- inplace : boolean , default False
6121
+ inplace : bool , default False
6122
6122
If True, in place. Note: this will modify any
6123
6123
other views on this object (e.g. a column from a DataFrame).
6124
6124
Returns the caller if this is True.
@@ -6137,12 +6137,6 @@ def bfill(self, axis=None, inplace=False, limit=None, downcast=None):
6137
6137
.. versionchanged:: 0.23.0
6138
6138
Added to DataFrame.
6139
6139
6140
- See Also
6141
- --------
6142
- %(klass)s.fillna : Fill NA values.
6143
- %(klass)s.where : Replace values based on boolean condition.
6144
- Series.str.replace : Simple string replacement.
6145
-
6146
6140
Returns
6147
6141
-------
6148
6142
%(klass)s
@@ -6166,6 +6160,12 @@ def bfill(self, axis=None, inplace=False, limit=None, downcast=None):
6166
6160
* If a ``list`` or an ``ndarray`` is passed to `to_replace` and
6167
6161
`value` but they are not the same length.
6168
6162
6163
+ See Also
6164
+ --------
6165
+ %(klass)s.fillna : Fill NA values.
6166
+ %(klass)s.where : Replace values based on boolean condition.
6167
+ Series.str.replace : Simple string replacement.
6168
+
6169
6169
Notes
6170
6170
-----
6171
6171
* Regex substitution is performed under the hood with ``re.sub``. The
@@ -6280,7 +6280,7 @@ def bfill(self, axis=None, inplace=False, limit=None, downcast=None):
6280
6280
1 foo new
6281
6281
2 bait xyz
6282
6282
6283
- >>> df.replace(regex={r'^ba.$':'new', 'foo':'xyz'})
6283
+ >>> df.replace(regex={r'^ba.$': 'new', 'foo': 'xyz'})
6284
6284
A B
6285
6285
0 new abc
6286
6286
1 xyz new
0 commit comments