Flattening categories
Last updated
Last updated
When dealing with categories it is common to encounter data that may be under such format :
id | toppings |
---|---|
Ideally, the structure we would like to have to enable data analysis on such data format would be the following :
id | toppings |
---|---|
Let's see an example in order to achieve this result :
1
salad;tomatoes;onions
2
cheese;bacon
3
null
1
salad
1
tomatoes
1
onions
2
cheese
2
bacon