Skip to content

Commit

Permalink
Fix for FutrueWarning of get_group
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn committed May 17, 2024
1 parent 8b6c466 commit f6009ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/charty/table_adapters/pandas_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ def apply(*args, &block)
end

def [](key)
key = case key
when PyCall::Tuple
key
else
PyCall::Tuple.new(*key.to_a)
end
Charty::Table.new(@groupby.get_group(key))
end
end
Expand Down

0 comments on commit f6009ce

Please sign in to comment.