I have a dataset with various fileds and I want to aggregate it on 1 column and horizontally tabulize on other columns
Region Device
a ios
a chrome
a safari
a ios
a chrome
b chrome
b chrome
b safari
c ios
c chrome
c ios
I want the output to be like
Region ios Chrome safari
a 2 2 1
b 0 2 1
c 2 1 0
My end motive is to make tabular as well as graphical representations