I have a dataframe containing GeoJSON:
data = {'geojson': {0: '{"type":"LineString","coordinates":[[1,4],[2,5]]}',
1: '{"type":"LineString","coordinates":[[3,6],[4,7]]}'},
'checkpoint': {0: 6, 1: 0},'lom_name': {0: 'marathon19', 1: 'marathon19'}}
df = pd.DataFrame.from_dict(data)
The desired result is:
geojson lob_name
{"type":"LineString","coordinates":[[1,4],[2,5],[3,6],[4,7]]} marathon19
I tried df = df.groupby(['geojson']).apply(list) not really giving something i need
