首页 > 解决方案 > Geopandas 无效的字段类型

问题描述

我正在尝试将地理数据框导出为 shapefile,但出现以下错误:

ValueError: Invalid field type <class 'list'>

这些是列的 dtypes:

gdf.dtypes
Out[196]: 
Text                   object
Id_Tweet               object
Id_User                object
Username               object
Likes                   int64
Retweets                int64
Quotes                  int64
Replies                 int64
Geo                    object
Place_Type             object
Place_Name             object
Id_Place               object
Referenced Tweets      object
bbox                   object
lat                   float64
lon                   float64
geometry             geometry
dtype: object

这是与 dtypes 相关的错误吗?

亲切的问候,丹尼尔

标签: pythongeopandasshapefile

解决方案


推荐阅读