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
79
79
For this input dataset, chunked so that approximately a month of data is in a single chunk,
80
80
81
81
<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
+
84
90
Using the algorithm described below, flox will ** automatically** set
85
91
` 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% ' />
87
95
88
96
## Problem statement
89
97
You can’t perform that action at this time.
0 commit comments