diff --git a/lib/red_amber/group.rb b/lib/red_amber/group.rb index 9220204d..a8bcaa3a 100755 --- a/lib/red_amber/group.rb +++ b/lib/red_amber/group.rb @@ -659,7 +659,7 @@ def call_aggregating_function(func, summary_keys, _options) summary_keys.each.with_object([[], []]) do |key, (keys, arrays)| vector = @dataframe[key] arrays << filters.map { |filter| vector.filter(filter).send(func) } - keys << "#{func}(#{key})".to_sym + keys << :"#{func}(#{key})" rescue Arrow::Error::NotImplemented # next end diff --git a/test/test_subframes.rb b/test/test_subframes.rb index 48cac866..121614c8 100755 --- a/test/test_subframes.rb +++ b/test/test_subframes.rb @@ -378,7 +378,7 @@ class SubFranesTest < Test::Unit::TestCase test '#aggregate by block with an Array w/o group key' do aggregations = %i[sum count].product(%i[x z]).map do |func, key| - ["#{func}_#{key}".to_sym, key, func] + [:"#{func}_#{key}", key, func] end aggregated = @sf.aggregate do |df| @@ -399,7 +399,7 @@ class SubFranesTest < Test::Unit::TestCase test '#aggregate by block with an Array and group key' do aggregations = [%i[y y first]] %i[sum count].product(%i[x z]).each do |func, key| - aggregations << ["#{func}_#{key}".to_sym, key, func] + aggregations << [:"#{func}_#{key}", key, func] end aggregated = @sf.aggregate do |df|