I want so split a column in a dataframe into multiple columns.
This is the dataframe (df) I have:
object_id shape geometry
1 450 polygon((6.6 51.2, 6.69 51.23, 6.69 51.2))
The output I want looks like this:
x y x y x y
6.6 51.2 6.69 51.23 6.69 51.2
I am using this code:
df.geometry.str.split('( , )',expand=True)
but I'm getting an error.