i have a data frame like this:
country level_of_smoking clasification_country
germany high A
greece low B
USA medium A
france none A
italy low B
spain medium A
and so on (the list is longer than this is just a example)
so, I wonder how transform this dataframe into something like this:
high medium low none
classA 1 2 0 1
classB 0 0 2 0
please if you can help me with R or python code that make this.