File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,19 @@ Here's a quick demo of computing monthly mean climatologies with the National Wa
7979For 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+
8490Using 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
You can’t perform that action at this time.
0 commit comments