Below is the data frame I have:
ID Char Location
1 a IN
2 b,c,d US
3 e,g IN
4 ,,, CA
Below is the data frame I desire:
ID Char Location
1 a IN
2 b US
2 c US
2 d US
3 e IN
3 g IN
4 CA
How can I transform this data frame?