2
2
import pytest
3
3
4
4
import pandas as pd
5
- from pandas import DataFrame , Series
5
+ from pandas import DataFrame , Series , compat
6
6
import pandas ._testing as tm
7
7
from pandas .core .groupby .groupby import get_groupby
8
8
@@ -23,6 +23,7 @@ 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" )
26
27
def test_getitem (self ):
27
28
g = self .frame .groupby ("A" )
28
29
g_mutated = get_groupby (self .frame , by = "A" , mutated = True )
@@ -55,6 +56,7 @@ def test_getitem_multiple(self):
55
56
result = r .B .count ()
56
57
tm .assert_series_equal (result , expected )
57
58
59
+ @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
58
60
def test_rolling (self ):
59
61
g = self .frame .groupby ("A" )
60
62
r = g .rolling (window = 4 )
@@ -72,6 +74,7 @@ def test_rolling(self):
72
74
@pytest .mark .parametrize (
73
75
"interpolation" , ["linear" , "lower" , "higher" , "midpoint" , "nearest" ]
74
76
)
77
+ @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
75
78
def test_rolling_quantile (self , interpolation ):
76
79
g = self .frame .groupby ("A" )
77
80
r = g .rolling (window = 4 )
@@ -102,6 +105,7 @@ def func(x):
102
105
expected = g .apply (func )
103
106
tm .assert_series_equal (result , expected )
104
107
108
+ @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
105
109
def test_rolling_apply (self , raw ):
106
110
g = self .frame .groupby ("A" )
107
111
r = g .rolling (window = 4 )
@@ -111,6 +115,7 @@ def test_rolling_apply(self, raw):
111
115
expected = g .apply (lambda x : x .rolling (4 ).apply (lambda y : y .sum (), raw = raw ))
112
116
tm .assert_frame_equal (result , expected )
113
117
118
+ @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
114
119
def test_rolling_apply_mutability (self ):
115
120
# GH 14013
116
121
df = pd .DataFrame ({"A" : ["foo" ] * 3 + ["bar" ] * 3 , "B" : [1 ] * 6 })
@@ -192,6 +197,7 @@ def test_expanding_apply(self, raw):
192
197
tm .assert_frame_equal (result , expected )
193
198
194
199
@pytest .mark .parametrize ("expected_value,raw_value" , [[1.0 , True ], [0.0 , False ]])
200
+ @pytest .mark .xfail (not compat .IS64 , reason = "GH-35294" )
195
201
def test_groupby_rolling (self , expected_value , raw_value ):
196
202
# GH 31754
197
203
0 commit comments