Quickly explore your data with uniq and tally

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 https://rubyonrails.ba/single/quickly-explore-your-data-with-uniq-and-tally

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles