@@ -171,6 +171,12 @@ def all(
171
171
da (time) bool True True True True True False
172
172
173
173
>>> ds.groupby("labels").all()
174
+ <xarray.Dataset>
175
+ Dimensions: (labels: 3)
176
+ Coordinates:
177
+ * labels (labels) object 'a' 'b' 'c'
178
+ Data variables:
179
+ da (labels) bool False True True
174
180
175
181
See Also
176
182
--------
@@ -249,6 +255,12 @@ def any(
249
255
da (time) bool True True True True True False
250
256
251
257
>>> ds.groupby("labels").any()
258
+ <xarray.Dataset>
259
+ Dimensions: (labels: 3)
260
+ Coordinates:
261
+ * labels (labels) object 'a' 'b' 'c'
262
+ Data variables:
263
+ da (labels) bool True True True
252
264
253
265
See Also
254
266
--------
@@ -1167,6 +1179,12 @@ def all(
1167
1179
da (time) bool True True True True True False
1168
1180
1169
1181
>>> ds.resample(time="3M").all()
1182
+ <xarray.Dataset>
1183
+ Dimensions: (time: 3)
1184
+ Coordinates:
1185
+ * time (time) datetime64[ns] 2001-01-31 2001-04-30 2001-07-31
1186
+ Data variables:
1187
+ da (time) bool True True False
1170
1188
1171
1189
See Also
1172
1190
--------
@@ -1245,6 +1263,12 @@ def any(
1245
1263
da (time) bool True True True True True False
1246
1264
1247
1265
>>> ds.resample(time="3M").any()
1266
+ <xarray.Dataset>
1267
+ Dimensions: (time: 3)
1268
+ Coordinates:
1269
+ * time (time) datetime64[ns] 2001-01-31 2001-04-30 2001-07-31
1270
+ Data variables:
1271
+ da (time) bool True True True
1248
1272
1249
1273
See Also
1250
1274
--------
@@ -2167,6 +2191,10 @@ def all(
2167
2191
labels (time) <U1 'a' 'b' 'c' 'c' 'b' 'a'
2168
2192
2169
2193
>>> da.groupby("labels").all()
2194
+ <xarray.DataArray (labels: 3)>
2195
+ array([False, True, True])
2196
+ Coordinates:
2197
+ * labels (labels) object 'a' 'b' 'c'
2170
2198
2171
2199
See Also
2172
2200
--------
@@ -2241,6 +2269,10 @@ def any(
2241
2269
labels (time) <U1 'a' 'b' 'c' 'c' 'b' 'a'
2242
2270
2243
2271
>>> da.groupby("labels").any()
2272
+ <xarray.DataArray (labels: 3)>
2273
+ array([ True, True, True])
2274
+ Coordinates:
2275
+ * labels (labels) object 'a' 'b' 'c'
2244
2276
2245
2277
See Also
2246
2278
--------
@@ -3089,6 +3121,10 @@ def all(
3089
3121
labels (time) <U1 'a' 'b' 'c' 'c' 'b' 'a'
3090
3122
3091
3123
>>> da.resample(time="3M").all()
3124
+ <xarray.DataArray (time: 3)>
3125
+ array([ True, True, False])
3126
+ Coordinates:
3127
+ * time (time) datetime64[ns] 2001-01-31 2001-04-30 2001-07-31
3092
3128
3093
3129
See Also
3094
3130
--------
@@ -3163,6 +3199,10 @@ def any(
3163
3199
labels (time) <U1 'a' 'b' 'c' 'c' 'b' 'a'
3164
3200
3165
3201
>>> da.resample(time="3M").any()
3202
+ <xarray.DataArray (time: 3)>
3203
+ array([ True, True, True])
3204
+ Coordinates:
3205
+ * time (time) datetime64[ns] 2001-01-31 2001-04-30 2001-07-31
3166
3206
3167
3207
See Also
3168
3208
--------
0 commit comments