Skip to content

Commit eb85c37

Browse files
committed
pandas: don't use deprecated DataFrameGroupBy.apply(include_groups: true)
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 eb85c37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/pycall.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
needs: ruby-versions
1717
name: ${{ matrix.os }}/${{ matrix.ruby }}/${{ matrix.python }}-${{ matrix.python_architecture }}
1818
runs-on: ${{ matrix.os }}
19-
timeout-minutes: 10
19+
timeout-minutes: 15
2020

2121
strategy:
2222
fail-fast: false

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)