I have dataframe in following format:
Date Category Value
01-01-2020 A 1
02-01-2020 A 1
01-01-2020 B 2
02-01-2020 B 2
And i need to transform above df in such way that it gives the below output:
Date Category_A Category_B
01-01-2020 1 2
02-01-2020 1 2
Thanks in advance for the help.