Let's say I have a dataframe with a column A and I would like to aggregate another column with the occurence of the distinct values in A without resulting in a grouped dataframe, I mean I would like to have the following:
| A | A_counts | 
|---|---|
| a | 3 | 
| a | 3 | 
| b | 1 | 
| c | 2 | 
| c | 2 | 
| a | 3 | 
Thanks in advance
