Skip to content

Instantly share code, notes, and snippets.

@dhoss
Created July 1, 2013 22:05
Show Gist options
  • Save dhoss/5905043 to your computer and use it in GitHub Desktop.
Save dhoss/5905043 to your computer and use it in GitHub Desktop.
def grouped_impression_data
raw_impression_data
@impression_data.group_by {|i| i.first}.each {|k,v|
v.each {|val|
val.shift
}
v.flatten
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment