Skip to content

Commit ad8caea

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

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/posts/flox-smart/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,11 @@ Here's a quick demo of computing monthly mean climatologies with the National Wa
7979
For this input dataset, chunked so that approximately a month of data is in a single chunk,
8080

8181
<RawHTML filePath='/posts/flox-smart/dataset-repr.html' />
82-
we run ``` mean_mapreduce = ds.groupby("time.month").mean(method="map-reduce") mean_cohorts
83-
= ds.groupby("time.month").mean() # this is auto-detected! ``` Using the algorithm
84-
described below, flox will **automatically** set `method="cohorts"` for this dataset
85-
unless specified, yielding a 5X decrease in memory need, and 2X longer in time ![](/posts/flox-smart/mem.png)
82+
we run ``` mean_mapreduce = ds.groupby("time.month").mean(method="map-reduce")
83+
mean_cohorts = ds.groupby("time.month").mean() # this is auto-detected! ```
84+
Using the algorithm described below, flox will **automatically** set
85+
`method="cohorts"` for this dataset unless specified, yielding a 5X decrease in
86+
memory need, and 2X longer in time ![](/posts/flox-smart/mem.png)
8687

8788
## Problem statement
8889

0 commit comments

Comments
 (0)