22import pytest
33
44import pandas as pd
5- from pandas import DataFrame , Series , compat
5+ from pandas import DataFrame , Series
66import pandas ._testing as tm
77from pandas .core .groupby .groupby import get_groupby
88
@@ -23,7 +23,6 @@ def test_mutated(self):
2323 g = get_groupby (self .frame , by = "A" , mutated = True )
2424 assert g .mutated
2525
26- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
2726 def test_getitem (self ):
2827 g = self .frame .groupby ("A" )
2928 g_mutated = get_groupby (self .frame , by = "A" , mutated = True )
@@ -56,7 +55,6 @@ def test_getitem_multiple(self):
5655 result = r .B .count ()
5756 tm .assert_series_equal (result , expected )
5857
59- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
6058 def test_rolling (self ):
6159 g = self .frame .groupby ("A" )
6260 r = g .rolling (window = 4 )
@@ -74,7 +72,6 @@ def test_rolling(self):
7472 @pytest .mark .parametrize (
7573 "interpolation" , ["linear" , "lower" , "higher" , "midpoint" , "nearest" ]
7674 )
77- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
7875 def test_rolling_quantile (self , interpolation ):
7976 g = self .frame .groupby ("A" )
8077 r = g .rolling (window = 4 )
@@ -105,7 +102,6 @@ def func(x):
105102 expected = g .apply (func )
106103 tm .assert_series_equal (result , expected )
107104
108- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
109105 def test_rolling_apply (self , raw ):
110106 g = self .frame .groupby ("A" )
111107 r = g .rolling (window = 4 )
@@ -115,7 +111,6 @@ def test_rolling_apply(self, raw):
115111 expected = g .apply (lambda x : x .rolling (4 ).apply (lambda y : y .sum (), raw = raw ))
116112 tm .assert_frame_equal (result , expected )
117113
118- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
119114 def test_rolling_apply_mutability (self ):
120115 # GH 14013
121116 df = pd .DataFrame ({"A" : ["foo" ] * 3 + ["bar" ] * 3 , "B" : [1 ] * 6 })
@@ -197,7 +192,6 @@ def test_expanding_apply(self, raw):
197192 tm .assert_frame_equal (result , expected )
198193
199194 @pytest .mark .parametrize ("expected_value,raw_value" , [[1.0 , True ], [0.0 , False ]])
200- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
201195 def test_groupby_rolling (self , expected_value , raw_value ):
202196 # GH 31754
203197
@@ -215,7 +209,6 @@ def foo(x):
215209 )
216210 tm .assert_series_equal (result , expected )
217211
218- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
219212 def test_groupby_rolling_center_center (self ):
220213 # GH 35552
221214 series = Series (range (1 , 6 ))
@@ -281,7 +274,6 @@ def test_groupby_rolling_center_center(self):
281274 )
282275 tm .assert_frame_equal (result , expected )
283276
284- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
285277 def test_groupby_subselect_rolling (self ):
286278 # GH 35486
287279 df = DataFrame (
@@ -307,7 +299,6 @@ def test_groupby_subselect_rolling(self):
307299 )
308300 tm .assert_series_equal (result , expected )
309301
310- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
311302 def test_groupby_rolling_custom_indexer (self ):
312303 # GH 35557
313304 class SimpleIndexer (pd .api .indexers .BaseIndexer ):
@@ -331,7 +322,6 @@ def get_window_bounds(
331322 expected = df .groupby (df .index ).rolling (window = 3 , min_periods = 1 ).sum ()
332323 tm .assert_frame_equal (result , expected )
333324
334- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
335325 def test_groupby_rolling_subset_with_closed (self ):
336326 # GH 35549
337327 df = pd .DataFrame (
@@ -356,7 +346,6 @@ def test_groupby_rolling_subset_with_closed(self):
356346 )
357347 tm .assert_series_equal (result , expected )
358348
359- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
360349 def test_groupby_subset_rolling_subset_with_closed (self ):
361350 # GH 35549
362351 df = pd .DataFrame (
@@ -384,7 +373,6 @@ def test_groupby_subset_rolling_subset_with_closed(self):
384373 )
385374 tm .assert_series_equal (result , expected )
386375
387- @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
388376 @pytest .mark .parametrize ("func" , ["max" , "min" ])
389377 def test_groupby_rolling_index_changed (self , func ):
390378 # GH: #36018 nlevels of MultiIndex changed
0 commit comments