Hi I have a table similar to below
Fruits America Europe Asia
0 Apple Good N/A Bad
1 Orange N/A Bad Good
and I would like to transform into something like this
Fruits and Region Good Bad N/A
0 Apple America 1 0 0
1 Apple Europe. 0. 0. 1
2 Apple Asia. 0 1. 0
3 Orange America. 0. 0. 1
4 Orange Europe. 0. 1. 0
5 Orange Asia. 1. 0. 0
I have tried the stack function but it doesn't work as expected.
Thank you