Hello,
I have a dataset with the following characteristics:
Row #1: Transaction A - Location New York
Row #2: Transaction B - Location Seattle
Row #3: Transaction A - Location Washington
Row #4: Transaction B - Location Detroit
...
I would like my dataset to look as follows:
Row #1 - Transaction A - Location 1 New York - Location 2 Washington
Row #2 - Transaction B - Location 1 Seattle - Location 2 Detroit
Basically, I would like to move from two columns (Transaction and Location), to three columns (Transaction, Location 1 and Location 2). What is the easiest way to do this?
Thank you in advance for your help!
Best