File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1318,8 +1318,12 @@ def test_groupby_special_ops():
1318
1318
assert_identical (group , cfgroup )
1319
1319
1320
1320
# arithmetic
1321
- expected = grouped - grouped .mean ()
1322
- actual = grouped - cfgrouped .mean ()
1321
+ # TODO: Extremely buggy!
1322
+ # 1. cfgrouped - cfgrouped.mean() raises RecursionError
1323
+ # 2. use_flox=True doesn't preserve attributes for some reason
1324
+ with xr .set_options (keep_attrs = True ):
1325
+ expected = grouped - grouped .mean ()
1326
+ actual = grouped - cfgrouped .mean ()
1323
1327
assert_identical (expected , actual )
1324
1328
1325
1329
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ dependencies:
6
6
- pytest
7
7
- pytest-xdist
8
8
- dask
9
+ - flox
9
10
- matplotlib-base
10
11
- netcdf4
11
12
- pandas
Original file line number Diff line number Diff line change @@ -13,4 +13,5 @@ dependencies:
13
13
- shapely
14
14
- pip :
15
15
- git+https://github.com/pydata/xarray
16
+ - git+https://github.com/dcherian/flox
16
17
- git+https://github.com/hgrecco/pint
You can’t perform that action at this time.
0 commit comments