Skip to content

Commit f4143c5

Browse files
committed
Fix rolling_groupby and expanding_groupby for pandas 1.3.0
GitHub ticket #172
1 parent fae148c commit f4143c5

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

pandarallel/data_types/expanding_groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_chunks(
2424

2525
iterator = (
2626
iter(data._groupby)
27-
if pandas_version <= (1, 3)
27+
if pandas_version < (1, 3)
2828
else data._grouper.get_iterator(data.obj)
2929
)
3030

pandarallel/data_types/rolling_groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_chunks(
2424

2525
iterator = (
2626
iter(data._groupby)
27-
if pandas_version <= (1, 3)
27+
if pandas_version < (1, 3)
2828
else data._grouper.get_iterator(data.obj)
2929
)
3030

tests.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ echo
2323
pip install pandas==1.2.0 --quiet
2424
pytest
2525

26-
# TODO: Fix tests for this version of Pandas
27-
# echo "Pandas 1.3.0"
28-
# echo "------------"
29-
# echo
30-
# pip install pandas==1.3.0 --quiet
31-
# pytest
26+
echo "Pandas 1.3.0"
27+
echo "------------"
28+
echo
29+
pip install pandas==1.3.0 --quiet
30+
pytest
3231

3332
echo "Pandas 1.4.0"
3433
echo "------------"

0 commit comments

Comments
 (0)