Skip to content

Commit 213303e

Browse files
authored
fix the unit-aware docs (#84)
* fix the links in [bf]fill * generate a API page for DataArray.pint.loc
1 parent 0f891ea commit 213303e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ DataArray
3939
:toctree: generated/
4040
:template: autosummary/accessor_attribute.rst
4141

42-
xarray.Dataset.pint.loc
42+
xarray.DataArray.pint.loc
4343

4444
xarray.DataArray.pint.magnitude
4545
xarray.DataArray.pint.units

pint_xarray/accessors.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ def drop_sel(self, labels=None, *, errors="raise", **labels_kwargs):
990990
def ffill(self, dim, limit=None):
991991
"""unit-aware version of ffill
992992
993-
Like :py:meth:`DataArray.ffill` but without stripping the data units.
993+
Like :py:meth:`xarray.DataArray.ffill` but without stripping the data units.
994994
995995
See Also
996996
--------
@@ -1007,7 +1007,7 @@ def ffill(self, dim, limit=None):
10071007
def bfill(self, dim, limit=None):
10081008
"""unit-aware version of bfill
10091009
1010-
Like :py:meth:`DataArray.bfill` but without stripping the data units.
1010+
Like :py:meth:`xarray.DataArray.bfill` but without stripping the data units.
10111011
10121012
See Also
10131013
--------
@@ -1751,7 +1751,7 @@ def drop_sel(self, labels=None, *, errors="raise", **labels_kwargs):
17511751
def ffill(self, dim, limit=None):
17521752
"""unit-aware version of ffill
17531753
1754-
Like :py:meth:`Dataset.ffill` but without stripping the data units.
1754+
Like :py:meth:`xarray.Dataset.ffill` but without stripping the data units.
17551755
17561756
See Also
17571757
--------
@@ -1768,7 +1768,7 @@ def ffill(self, dim, limit=None):
17681768
def bfill(self, dim, limit=None):
17691769
"""unit-aware version of bfill
17701770
1771-
Like :py:meth:`Dataset.bfill` but without stripping the data units.
1771+
Like :py:meth:`xarray.Dataset.bfill` but without stripping the data units.
17721772
17731773
See Also
17741774
--------

0 commit comments

Comments
 (0)