Skip to content

Commit f8c6b2c

Browse files
authored
pandas: don't use deprecated DataFrameGroupBy.apply(include_groups: true) (#121)
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)
1 parent 9eeeaf2 commit f8c6b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/charty/table_adapters/pandas_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def apply(*args, &block)
199199
res = @groupby.apply(->(data) {
200200
res = block.call(Charty::Table.new(data), *args)
201201
Pandas::Series.new(data: res)
202-
})
202+
}, include_groups: false)
203203
Charty::Table.new(res)
204204
end
205205

0 commit comments

Comments
 (0)