Skip to content

Commit 2fa0565

Browse files
HughKelleyNico Cernek
authored and
Nico Cernek
committed
DOC: fix formatting in the ExtensionArray docstrings (pandas-dev#28686)
1 parent 911991d commit 2fa0565

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

pandas/core/arrays/base.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def fillna(self, value=None, method=None, limit=None):
474474
method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None
475475
Method to use for filling holes in reindexed Series
476476
pad / ffill: propagate last valid observation forward to next valid
477-
backfill / bfill: use NEXT valid observation to fill gap
477+
backfill / bfill: use NEXT valid observation to fill gap.
478478
limit : int, default None
479479
If method is specified, this is the maximum number of consecutive
480480
NaN values to forward/backward fill. In other words, if there is
@@ -485,7 +485,8 @@ def fillna(self, value=None, method=None, limit=None):
485485
486486
Returns
487487
-------
488-
filled : ExtensionArray with NA/NaN filled
488+
ExtensionArray
489+
With NA/NaN filled.
489490
"""
490491
value, method = validate_fillna_kwargs(value, method)
491492

@@ -539,13 +540,14 @@ def shift(self, periods: int = 1, fill_value: object = None) -> ABCExtensionArra
539540
540541
fill_value : object, optional
541542
The scalar value to use for newly introduced missing values.
542-
The default is ``self.dtype.na_value``
543+
The default is ``self.dtype.na_value``.
543544
544545
.. versionadded:: 0.24.0
545546
546547
Returns
547548
-------
548-
shifted : ExtensionArray
549+
ExtensionArray
550+
Shifted.
549551
550552
Notes
551553
-----
@@ -869,11 +871,12 @@ def view(self, dtype=None) -> Union[ABCExtensionArray, np.ndarray]:
869871
Parameters
870872
----------
871873
dtype : str, np.dtype, or ExtensionDtype, optional
872-
Default None
874+
Default None.
873875
874876
Returns
875877
-------
876878
ExtensionArray
879+
A view of the :class:`ExtensionArray`.
877880
"""
878881
# NB:
879882
# - This must return a *new* object referencing the same data, not self.

0 commit comments

Comments
 (0)