Geopandas 爆炸功能对于多行字符串无法正常工作

问题描述 投票:0回答:0

我这里有这个地理数据框:

enter image description here

我需要将多字符串行分成几个单独的字符串,但是当我应用此代码时:

# Load only the railway geometry from which their buffer overlaps
railwayGeometry = gp.read_file("TRACK.geojson")
railway_ROI = railwayGeometry[inside]
railway_ROI = gp.GeoDataFrame(railway_ROI)

pd.set_option('display.max_colwidth', 90)

a = railway_ROI.explode(index_parts=True)
a

我明白了,其中线串与多行字符串对象相同,我不确定我做错了什么

enter image description here

python pandas dataframe gis geopandas
© www.soinside.com 2019 - 2024. All rights reserved.