I need to split a dataframe into multiple columns to make sure only one value is contained within each cell. The current dataframe looks like:
projectid| count | Name | Type | count |
.....................................................................
ABC | 211 | jack |abc(Apple, Orange, Water melon)| Multiple|
DBG | 90 | jill | Plum | single |
The new dataframe should look like
projectid| count | Name | Type | count |
....................................................
ABC | 211 | jack | Apple |Multiple|
ABC | 211 | jack | Orange |Multiple|
ABC | 211 | jack | Water melon |Multiple|
DBG | 90 | jill | Plum |single |
I can split the single cell using regular expression based on the "()" and "," as a separator. However, I can't figure out how to populate multiple columns.