@@ -1099,14 +1099,14 @@ def test_stack_groupby_unsorted_coord(self):
1099
1099
y_vals = [2 , 3 ]
1100
1100
1101
1101
arr = xr .DataArray (data , dims = dims , coords = {"y" : y_vals })
1102
- actual1 = arr .stack (z = dims ).groupby ("z" , squeeze = False ).first ()
1102
+ actual1 = arr .stack (z = dims ).groupby ("z" ).first ()
1103
1103
midx1 = pd .MultiIndex .from_product ([[0 , 1 ], [2 , 3 ]], names = dims )
1104
1104
expected1 = xr .DataArray (data_flat , dims = ["z" ], coords = {"z" : midx1 })
1105
1105
assert_equal (actual1 , expected1 )
1106
1106
1107
1107
# GH: 3287. Note that y coord values are not in sorted order.
1108
1108
arr = xr .DataArray (data , dims = dims , coords = {"y" : y_vals [::- 1 ]})
1109
- actual2 = arr .stack (z = dims ).groupby ("z" , squeeze = False ).first ()
1109
+ actual2 = arr .stack (z = dims ).groupby ("z" ).first ()
1110
1110
midx2 = pd .MultiIndex .from_product ([[0 , 1 ], [3 , 2 ]], names = dims )
1111
1111
expected2 = xr .DataArray (data_flat , dims = ["z" ], coords = {"z" : midx2 })
1112
1112
assert_equal (actual2 , expected2 )
@@ -1420,7 +1420,7 @@ def test_groupby_first_and_last(self):
1420
1420
actual = array .groupby (by ).first ()
1421
1421
assert_identical (expected , actual )
1422
1422
1423
- actual = array .groupby ("x" , squeeze = False ).first ()
1423
+ actual = array .groupby ("x" ).first ()
1424
1424
expected = array # should be a no-op
1425
1425
assert_identical (expected , actual )
1426
1426
0 commit comments