Skip to content

Commit 2203a34

Browse files
committed
Fix
1 parent ad8caea commit 2203a34

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/posts/flox-smart/index.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,19 @@ 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")
83-
mean_cohorts = ds.groupby("time.month").mean() # this is auto-detected! ```
82+
83+
we run
84+
85+
```python
86+
mean_mapreduce = ds.groupby("time.month").mean(method="map-reduce")
87+
mean_cohorts = ds.groupby("time.month").mean() # this is auto-detected!
88+
```
89+
8490
Using the algorithm described below, flox will **automatically** set
8591
`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)
92+
memory need, and 2X longer in time
93+
94+
<img src='/posts/flox-smart/mem.png' alt='Memory usage' width='60%' />
8795

8896
## Problem statement
8997

0 commit comments

Comments
 (0)