raw_data = load 'test1-data.txt', :schema => %w(name city country) grouped_by_country = raw_data.group :country dump grouped_by_country