Skip to content

Commit 96c6b49

Browse files
committed
Add aggregation as top-level import
1 parent aa7798f commit 96c6b49

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/source/api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ Aggregation Objects
3939
.. autosummary::
4040
:toctree: generated/
4141

42-
aggregations.Aggregation
42+
Aggregation
4343
aggregations.sum_
4444
aggregations.nansum

docs/source/user-stories/custom-aggregations.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@
665665
}
666666
],
667667
"source": [
668-
"from flox.aggregations import Aggregation\n",
668+
"from flox import Aggregation\n",
669669
"\n",
670670
"agg_median = Aggregation(\n",
671671
" name=\"median\",\n",

flox/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22
# flake8: noqa
33
"""Top-level module for flox ."""
4+
from .aggregations import Aggregation # noqa
45
from .core import groupby_reduce, rechunk_for_blockwise, rechunk_for_cohorts # noqa
56

67
try:

0 commit comments

Comments
 (0)