I used to have a Pandas data frame with geometry column (I guess you call it as GeoPandas data frame) where all the instances were multiline string with shapely.geometry data type.
When I saved it as a csv (with pandas.to_csv function) I guess python converts them into string type, because when I try to reload it (with pandas.read_csv function), read data frame has a string type data under geometry column.
How can I convert string type MultilineString rows under geometry column into shapely.geometry object.
active.geometry[0]
Gives:
'MULTILINESTRING ((4.6902978485015 50.8812913672182, 4.69041863376864 50.8813473567576,
4.69048964428198 50.8814069648068, 4.69054925191282 50.8814797434961, 4.69058047643031 50.8815178675679, 4.69103203247511 50.8820691915014, 4.69112606776955 50.8821748368663, 4.69118560934351 50.8822527991125, 4.69122586159577 50.8823195293716, 4.69133401466373 50.8824824286198, 4.69153580362294 50.8827908199779, 4.69155260179444 50.8828164920095))'
BUT, this:
active.geometry[0][0]
Gives
'M'
instead of a shapely object of the first line string that the multiline string objects is composed of.
I also tried shapely.wkt function but it outputs only the first lineString, instead all the lineStrings that multiline string has