Skip to content

pandas: don't use deprecated DataFrameGroupBy.apply(include_groups: true) - #121

Merged
kou merged 1 commit into
red-data-tools:mainfrom
kou:pandas-group-by-apply
Aug 13, 2025
Merged

pandas: don't use deprecated DataFrameGroupBy.apply(include_groups: true)#121
kou merged 1 commit into
red-data-tools:mainfrom
kou:pandas-group-by-apply

Conversation

@kou

@kou kou commented Aug 12, 2025

Copy link
Copy Markdown
Member

It's deprecated in pandas 2.3.0:

https://pandas.pydata.org/docs/whatsnew/v2.3.0.html#deprecations

The deprecation of setting the argument include_groups to True in
DataFrameGroupBy.apply() has been promoted from a DeprecationWarning
to FutureWarning; only False will be allowed (GH 7155)

@kou
kou force-pushed the pandas-group-by-apply branch 2 times, most recently from eb85c37 to f8f204f Compare August 12, 2025 22:12
…rue)

It's deprecated in pandas 2.3.0:

https://pandas.pydata.org/docs/whatsnew/v2.3.0.html#deprecations

> The deprecation of setting the argument include_groups to True in
> DataFrameGroupBy.apply() has been promoted from a DeprecationWarning
> to FutureWarning; only False will be allowed (GH 7155)
@kou
kou force-pushed the pandas-group-by-apply branch from f8f204f to 16590c1 Compare August 12, 2025 22:13
@kou
kou merged commit f8c6b2c into red-data-tools:main Aug 13, 2025
16 of 22 checks passed
@kou
kou deleted the pandas-group-by-apply branch August 13, 2025 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant