I have a dataframe, where I exploded the variables in to new columns as they were in one column as strings and separated by a ‘,’.
Now I would like to count the three columns and aggregate the frequency of each variable.
The below is the code I’m using to count the columns individually.
”’
df8['Key Features A'].value_counts()
df8['Key Features B'].value_counts()
df8['Key Features C'].value_counts()
”’
Thanks!