I have a list of data that I'd like to convert from one layout to another. I'm not entirely sure about the best way to go about converting from one layout to another. I've thought of scraping one "cheesetype" at a time and then joining the results. I'm hoping there's a more elegant solution. Here's what I've got :
| BurgerType | CheeseType | Slices |
|--------------|------------|--------|
| Cheeseburger | Provolone | 2 |
| Cheeseburger | Cheddar | 3 |
| Cheeseburger | Bleu | 1 |
| Loosey | Provolone | 4 |
| Loosey | Cheddar | 4 |
| BlackBleu | Bleu | 2 |
| MONSTERNOM | Brie | 2 |
| MONSTERNOM | Cheddar | 1 |
I'd like to convert it to look something like this :
| BurgerType | Provolone | Cheddar | Bleu | Brie |
|--------------|-----------|---------|------|------|
| Cheeseburger | 2 | 3 | 1 | 0 |
| Loosey | 4 | 4 | 0 | 0 |
| BlackBleu | 0 | 0 | 2 | 2 |
| MONSTERNOM | 0 | 1 | 0 | 2 |