Splitting a string column and getting unique values and frequency in Python

With two methods: For loop and Counter container

Annie Wang
Towards Data Science
5 min readDec 3, 2020

--

Photo by Jon Tyson on Unsplash

What the problem and target are:

In order to simplify the problem, I take out two columns from my working file which is a Stackoverflow yearly Survey file, as below:

--

--