Skip to content

Commit

Permalink
[wip] Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Apr 17, 2024
1 parent 9338237 commit 8fc7f5f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
12 changes: 12 additions & 0 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,18 @@ Accessors
core.accessor_dt.TimedeltaAccessor
core.accessor_str.StringAccessor

Grouper Objects
===============
.. autosummary::
:toctree: generated/

groupers.Grouper
groupers.Resampler
groupers.BinGrouper
groupers.UniqueGrouper
groupers.TimeResampler
groupers.EncodedGroups

Custom Indexes
==============
.. autosummary::
Expand Down
7 changes: 7 additions & 0 deletions doc/user-guide/groupby.rst
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,10 @@ applying your function, and then unstacking the result:
stacked = da.stack(gridcell=["ny", "nx"])
stacked.groupby("gridcell").sum(...).unstack("gridcell")
.. _groupby.groupers:

Extending GroupBy: Grouper Objects
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

...
3 changes: 1 addition & 2 deletions xarray/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
# `mypy --strict` running in projects that import xarray.
__all__ = (
# Sub-packages
"groupers",
"testing",
"tutorial",
# Top-level functions
Expand Down Expand Up @@ -95,8 +96,6 @@
"unify_chunks",
"where",
"zeros_like",
# Submodules
"groupers",
# Classes
"CFTimeIndex",
"Context",
Expand Down

0 comments on commit 8fc7f5f

Please sign in to comment.