Quickly explore your data with uniq and tally
07-May-2021 1390
A common question you may want to answer on user-input data is: what values have been entered and how many times is each one used?Maybe you have a list of dropdown options and you want to investigate removing a rare-used option.Ruby has two handy methods that I reach for often: uniq and tally.
Quickly explore your data with uniq and tally #ruby #rubydeveloper #rubyonrails #Quickly #explore #tally https://rubyonrails.ba/link/quickly-explore-your-data-with-uniq-and-tally