Skip to content

Commit ac5cc29

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c2fd12f commit ac5cc29

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pandas/core/indexes/datetimelike.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ def take(
885885
) -> Self:
886886
"""
887887
Return a new %(klass)s of the values selected by the indices.
888-
888+
889889
For internal compatibility with numpy arrays.
890890
891891
Parameters
@@ -896,35 +896,35 @@ def take(
896896
The axis over which to select values, always 0 or 'index'.
897897
allow_fill : bool, default True
898898
How to handle negative values in `indices`.
899-
899+
900900
* False: negative values in `indices` indicate positional indices
901901
from the right (the default). This is similar to
902902
:func:`numpy.take`.
903-
903+
904904
* True: negative values in `indices` indicate
905905
missing values. These values are set to `fill_value`. Any other
906906
other negative values raise a ``ValueError``.
907-
907+
908908
fill_value : scalar, default None
909909
If allow_fill=True and fill_value is not None, indices specified by
910910
-1 are regarded as NA. If Index doesn't hold NA, raise ValueError.
911911
**kwargs
912912
Required for compatibility with numpy.
913-
913+
914914
Returns
915915
-------
916916
Index
917917
An index formed of elements at the given indices. Will be the same
918918
type as self, except for RangeIndex.
919-
919+
920920
See Also
921921
--------
922922
numpy.ndarray.take: Return an array formed from the
923923
elements of a at the given indices.
924-
924+
925925
Examples
926926
--------
927-
>>> idx = pd.Index(['a', 'b', 'c'])
927+
>>> idx = pd.Index(["a", "b", "c"])
928928
>>> idx.take([2, 2, 1, 2])
929929
Index(['c', 'c', 'b', 'c'], dtype='str')
930930
"""

0 commit comments

Comments
 (0)