Skip to content

Commit e31d21f

Browse files
authored
Fix a typo in dataarray.py. (#11185)
1 parent 8f6605e commit e31d21f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

doc/whats-new.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Bug Fixes
4141
Documentation
4242
~~~~~~~~~~~~~
4343

44+
- Fix a typo in ``xarray/core/dataarray.py`` (:pull:`11185`).
45+
By `Yaocheng Chen <https://github.com/yaochengchen>`_.
4446

4547
Internal Changes
4648
~~~~~~~~~~~~~~~~

xarray/core/dataarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,7 +1734,7 @@ def head(
17341734
indexers: Mapping[Any, int] | int | None = None,
17351735
**indexers_kwargs: Any,
17361736
) -> Self:
1737-
"""Return a new DataArray whose data is given by the the first `n`
1737+
"""Return a new DataArray whose data is given by the first `n`
17381738
values along the specified dimension(s). Default `n` = 5
17391739
17401740
See Also
@@ -1777,7 +1777,7 @@ def tail(
17771777
indexers: Mapping[Any, int] | int | None = None,
17781778
**indexers_kwargs: Any,
17791779
) -> Self:
1780-
"""Return a new DataArray whose data is given by the the last `n`
1780+
"""Return a new DataArray whose data is given by the last `n`
17811781
values along the specified dimension(s). Default `n` = 5
17821782
17831783
See Also

0 commit comments

Comments
 (0)