@@ -474,7 +474,7 @@ def fillna(self, value=None, method=None, limit=None):
474
474
method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None
475
475
Method to use for filling holes in reindexed Series
476
476
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.
478
478
limit : int, default None
479
479
If method is specified, this is the maximum number of consecutive
480
480
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):
485
485
486
486
Returns
487
487
-------
488
- filled : ExtensionArray with NA/NaN filled
488
+ ExtensionArray
489
+ With NA/NaN filled.
489
490
"""
490
491
value , method = validate_fillna_kwargs (value , method )
491
492
@@ -539,13 +540,14 @@ def shift(self, periods: int = 1, fill_value: object = None) -> ABCExtensionArra
539
540
540
541
fill_value : object, optional
541
542
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``.
543
544
544
545
.. versionadded:: 0.24.0
545
546
546
547
Returns
547
548
-------
548
- shifted : ExtensionArray
549
+ ExtensionArray
550
+ Shifted.
549
551
550
552
Notes
551
553
-----
@@ -869,11 +871,12 @@ def view(self, dtype=None) -> Union[ABCExtensionArray, np.ndarray]:
869
871
Parameters
870
872
----------
871
873
dtype : str, np.dtype, or ExtensionDtype, optional
872
- Default None
874
+ Default None.
873
875
874
876
Returns
875
877
-------
876
878
ExtensionArray
879
+ A view of the :class:`ExtensionArray`.
877
880
"""
878
881
# NB:
879
882
# - This must return a *new* object referencing the same data, not self.
0 commit comments