@@ -81,7 +81,7 @@ def test_frame_groupby_resample() -> None:
81
81
FutureWarning ,
82
82
"DataFrameGroupBy.(apply|resample) operated on the grouping columns" ,
83
83
lower = "2.2.99" ,
84
- upper = "2.3. 99" ,
84
+ upper = "2.99" ,
85
85
):
86
86
check (assert_type (GB_DF .resample ("ME" ).sum (), DataFrame ), DataFrame )
87
87
check (assert_type (GB_DF .resample ("ME" ).prod (), DataFrame ), DataFrame )
@@ -129,12 +129,12 @@ def test_frame_groupby_resample() -> None:
129
129
FutureWarning ,
130
130
"DataFrameGroupBy.(apply|resample) operated on the grouping columns" ,
131
131
lower = "2.2.99" ,
132
- upper = "2.3. 99" ,
132
+ upper = "2.99" ,
133
133
):
134
134
with pytest_warns_bounded (
135
135
FutureWarning ,
136
136
r"The provided callable <function (sum|mean) .*> is currently using " ,
137
- upper = "2.3. 99" ,
137
+ upper = "2.99" ,
138
138
):
139
139
check (
140
140
assert_type (GB_DF .resample ("ME" ).aggregate (np .sum ), DataFrame ),
@@ -178,7 +178,7 @@ def f(val: DataFrame) -> Series:
178
178
FutureWarning ,
179
179
"DataFrameGroupBy.(apply|resample) operated on the grouping columns" ,
180
180
lower = "2.2.99" ,
181
- upper = "2.3. 99" ,
181
+ upper = "2.99" ,
182
182
):
183
183
check (assert_type (GB_DF .resample ("ME" ).aggregate (f ), DataFrame ), DataFrame )
184
184
@@ -196,12 +196,12 @@ def df2scalar(val: DataFrame) -> float:
196
196
FutureWarning ,
197
197
"DataFrameGroupBy.(apply|resample) operated on the grouping columns" ,
198
198
lower = "2.2.99" ,
199
- upper = "2.3. 99" ,
199
+ upper = "2.99" ,
200
200
):
201
201
with pytest_warns_bounded (
202
202
FutureWarning ,
203
203
r"The provided callable <function (sum|mean) .*> is currently using " ,
204
- upper = "2.3. 99" ,
204
+ upper = "2.99" ,
205
205
):
206
206
check (GB_DF .resample ("ME" ).aggregate (np .sum ), DataFrame )
207
207
check (GB_DF .resample ("ME" ).aggregate ([np .mean ]), DataFrame )
@@ -381,7 +381,7 @@ def test_series_groupby_resample() -> None:
381
381
with pytest_warns_bounded (
382
382
FutureWarning ,
383
383
r"The provided callable <function (sum|mean) .*> is currently using " ,
384
- upper = "2.3. 99" ,
384
+ upper = "2.99" ,
385
385
):
386
386
check (
387
387
assert_type (
@@ -479,7 +479,7 @@ def s2scalar(val: Series) -> float:
479
479
with pytest_warns_bounded (
480
480
FutureWarning ,
481
481
r"The provided callable <function (sum|mean) .*> is currently using " ,
482
- upper = "2.3. 99" ,
482
+ upper = "2.99" ,
483
483
):
484
484
check (GB_S .resample ("ME" ).aggregate (np .sum ), Series )
485
485
check (GB_S .resample ("ME" ).aggregate ([np .mean ]), DataFrame )
@@ -526,7 +526,7 @@ def test_frame_groupby_rolling() -> None:
526
526
with pytest_warns_bounded (
527
527
FutureWarning ,
528
528
r"The provided callable <function (sum|mean) .*> is currently using " ,
529
- upper = "2.3. 99" ,
529
+ upper = "2.99" ,
530
530
):
531
531
check (assert_type (GB_DF .rolling (1 ).aggregate (np .sum ), DataFrame ), DataFrame )
532
532
check (assert_type (GB_DF .rolling (1 ).agg (np .sum ), DataFrame ), DataFrame )
@@ -570,7 +570,7 @@ def df2scalar(val: DataFrame) -> float:
570
570
with pytest_warns_bounded (
571
571
FutureWarning ,
572
572
r"The provided callable <function (sum|mean) .*> is currently using " ,
573
- upper = "2.3. 99" ,
573
+ upper = "2.99" ,
574
574
):
575
575
check (GB_DF .rolling (1 ).aggregate (np .sum ), DataFrame )
576
576
check (GB_DF .rolling (1 ).aggregate ([np .mean ]), DataFrame )
@@ -648,7 +648,7 @@ def test_series_groupby_rolling() -> None:
648
648
with pytest_warns_bounded (
649
649
FutureWarning ,
650
650
r"The provided callable <function (sum|mean) .*> is currently using " ,
651
- upper = "2.3. 99" ,
651
+ upper = "2.99" ,
652
652
):
653
653
check (assert_type (GB_S .rolling (1 ).aggregate ("sum" ), Series ), Series )
654
654
check (assert_type (GB_S .rolling (1 ).aggregate (np .sum ), Series ), Series )
@@ -721,7 +721,7 @@ def test_frame_groupby_expanding() -> None:
721
721
with pytest_warns_bounded (
722
722
FutureWarning ,
723
723
r"The provided callable <function (sum|mean) .*> is currently using " ,
724
- upper = "2.3. 99" ,
724
+ upper = "2.99" ,
725
725
):
726
726
check (assert_type (GB_DF .expanding (1 ).aggregate (np .sum ), DataFrame ), DataFrame )
727
727
check (assert_type (GB_DF .expanding (1 ).agg (np .sum ), DataFrame ), DataFrame )
@@ -767,7 +767,7 @@ def df2scalar(val: DataFrame) -> float:
767
767
with pytest_warns_bounded (
768
768
FutureWarning ,
769
769
r"The provided callable <function (sum|mean) .*> is currently using " ,
770
- upper = "2.3. 99" ,
770
+ upper = "2.99" ,
771
771
):
772
772
check (GB_DF .expanding (1 ).aggregate (np .sum ), DataFrame )
773
773
check (GB_DF .expanding (1 ).aggregate ([np .mean ]), DataFrame )
@@ -847,7 +847,7 @@ def test_series_groupby_expanding() -> None:
847
847
with pytest_warns_bounded (
848
848
FutureWarning ,
849
849
r"The provided callable <function (sum|mean) .*> is currently using " ,
850
- upper = "2.3. 99" ,
850
+ upper = "2.99" ,
851
851
):
852
852
check (assert_type (GB_S .expanding (1 ).aggregate ("sum" ), Series ), Series )
853
853
check (assert_type (GB_S .expanding (1 ).aggregate (np .sum ), Series ), Series )
@@ -916,7 +916,7 @@ def test_frame_groupby_ewm() -> None:
916
916
with pytest_warns_bounded (
917
917
FutureWarning ,
918
918
r"The provided callable <function (sum|mean) .*> is currently using " ,
919
- upper = "2.3. 99" ,
919
+ upper = "2.99" ,
920
920
):
921
921
check (assert_type (GB_DF .ewm (1 ).aggregate (np .sum ), DataFrame ), DataFrame )
922
922
check (assert_type (GB_DF .ewm (1 ).agg (np .sum ), DataFrame ), DataFrame )
@@ -947,7 +947,7 @@ def test_frame_groupby_ewm() -> None:
947
947
with pytest_warns_bounded (
948
948
FutureWarning ,
949
949
r"The provided callable <function (sum|mean) .*> is currently using " ,
950
- upper = "2.3. 99" ,
950
+ upper = "2.99" ,
951
951
):
952
952
check (GB_DF .ewm (1 ).aggregate (np .sum ), DataFrame )
953
953
check (GB_DF .ewm (1 ).aggregate ([np .mean ]), DataFrame )
@@ -1020,7 +1020,7 @@ def test_series_groupby_ewm() -> None:
1020
1020
with pytest_warns_bounded (
1021
1021
FutureWarning ,
1022
1022
r"The provided callable <function (sum|mean) .*> is currently using " ,
1023
- upper = "2.3. 99" ,
1023
+ upper = "2.99" ,
1024
1024
):
1025
1025
check (assert_type (GB_S .ewm (1 ).aggregate ("sum" ), Series ), Series )
1026
1026
if PD_LTE_23 :
0 commit comments