I have a column in a table similar to the following.
| tags |
|---|
| Large AcreageOcean IslandTurn KeyIncome Potential |
| Ocean IslandSeasonalMainland Lot |
| Lake IslandSeasonalTurn KeyIncome Potential |
I need to split the strings in the table so that it looks like this
| tags |
|---|
| Large Acreage,Ocean Island,Turn Key,Income Potential |
| Ocean Island,Seasonal,Mainland Lot |
| Lake Island,Seasonal,Turn Key,Income Potential |
I thought a regex command like re.sub(r'([a-z][A-Z])', ',', <string>) could work but that code results in
'Large Acreag,cean Islan,urn Ke,ncome Potential'
Any advice?