I have a timeseries Dataframe of Categorical values.
I'd like to count unique categorical values into new columns (named by value), like so:
df a b c df1 x y
17/6/2021 x x y 17/6/2021 2 1
18/6/2021 x x x >>>>>>>>> 18/6/2021 3 0
19/6/2021 y x x 19/6/2021 2 1
20/6/2021 y y y 20/6/2021 0 3
Would appreciate any guidance on what function is suitable for this task. TIA