2
2
import pytest
3
3
4
4
import pandas as pd
5
- from pandas import DataFrame , Series , compat
5
+ from pandas import DataFrame , Series
6
6
import pandas ._testing as tm
7
7
from pandas .core .groupby .groupby import get_groupby
8
8
@@ -23,7 +23,6 @@ def test_mutated(self):
23
23
g = get_groupby (self .frame , by = "A" , mutated = True )
24
24
assert g .mutated
25
25
26
- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
27
26
def test_getitem (self ):
28
27
g = self .frame .groupby ("A" )
29
28
g_mutated = get_groupby (self .frame , by = "A" , mutated = True )
@@ -56,7 +55,6 @@ def test_getitem_multiple(self):
56
55
result = r .B .count ()
57
56
tm .assert_series_equal (result , expected )
58
57
59
- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
60
58
def test_rolling (self ):
61
59
g = self .frame .groupby ("A" )
62
60
r = g .rolling (window = 4 )
@@ -74,7 +72,6 @@ def test_rolling(self):
74
72
@pytest .mark .parametrize (
75
73
"interpolation" , ["linear" , "lower" , "higher" , "midpoint" , "nearest" ]
76
74
)
77
- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
78
75
def test_rolling_quantile (self , interpolation ):
79
76
g = self .frame .groupby ("A" )
80
77
r = g .rolling (window = 4 )
@@ -105,7 +102,6 @@ def func(x):
105
102
expected = g .apply (func )
106
103
tm .assert_series_equal (result , expected )
107
104
108
- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
109
105
def test_rolling_apply (self , raw ):
110
106
g = self .frame .groupby ("A" )
111
107
r = g .rolling (window = 4 )
@@ -115,7 +111,6 @@ def test_rolling_apply(self, raw):
115
111
expected = g .apply (lambda x : x .rolling (4 ).apply (lambda y : y .sum (), raw = raw ))
116
112
tm .assert_frame_equal (result , expected )
117
113
118
- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
119
114
def test_rolling_apply_mutability (self ):
120
115
# GH 14013
121
116
df = pd .DataFrame ({"A" : ["foo" ] * 3 + ["bar" ] * 3 , "B" : [1 ] * 6 })
@@ -197,7 +192,6 @@ def test_expanding_apply(self, raw):
197
192
tm .assert_frame_equal (result , expected )
198
193
199
194
@pytest .mark .parametrize ("expected_value,raw_value" , [[1.0 , True ], [0.0 , False ]])
200
- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
201
195
def test_groupby_rolling (self , expected_value , raw_value ):
202
196
# GH 31754
203
197
@@ -215,7 +209,6 @@ def foo(x):
215
209
)
216
210
tm .assert_series_equal (result , expected )
217
211
218
- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
219
212
def test_groupby_rolling_center_center (self ):
220
213
# GH 35552
221
214
series = Series (range (1 , 6 ))
@@ -281,7 +274,6 @@ def test_groupby_rolling_center_center(self):
281
274
)
282
275
tm .assert_frame_equal (result , expected )
283
276
284
- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
285
277
def test_groupby_subselect_rolling (self ):
286
278
# GH 35486
287
279
df = DataFrame (
@@ -307,7 +299,6 @@ def test_groupby_subselect_rolling(self):
307
299
)
308
300
tm .assert_series_equal (result , expected )
309
301
310
- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
311
302
def test_groupby_rolling_custom_indexer (self ):
312
303
# GH 35557
313
304
class SimpleIndexer (pd .api .indexers .BaseIndexer ):
@@ -331,7 +322,6 @@ def get_window_bounds(
331
322
expected = df .groupby (df .index ).rolling (window = 3 , min_periods = 1 ).sum ()
332
323
tm .assert_frame_equal (result , expected )
333
324
334
- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
335
325
def test_groupby_rolling_subset_with_closed (self ):
336
326
# GH 35549
337
327
df = pd .DataFrame (
@@ -356,7 +346,6 @@ def test_groupby_rolling_subset_with_closed(self):
356
346
)
357
347
tm .assert_series_equal (result , expected )
358
348
359
- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
360
349
def test_groupby_subset_rolling_subset_with_closed (self ):
361
350
# GH 35549
362
351
df = pd .DataFrame (
@@ -384,7 +373,6 @@ def test_groupby_subset_rolling_subset_with_closed(self):
384
373
)
385
374
tm .assert_series_equal (result , expected )
386
375
387
- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
388
376
@pytest .mark .parametrize ("func" , ["max" , "min" ])
389
377
def test_groupby_rolling_index_changed (self , func ):
390
378
# GH: #36018 nlevels of MultiIndex changed
0 commit comments