1. 主页
  2. 文档
  3. GeoPandas 0.12.2中文文档
  4. User Guide
  5. Merging Data(合并数据)
  6. Appending

Appending

Appending GeoDataFrame and GeoSeries uses pandas append() methods. Keep in mind, that appended geometry columns needs to have the same CRS.

追加 GeoDataFrame 和 GeoSeries 使用 pandas append() 方法。请记住,追加的几何列需要具有相同的 CRS。

# Appending GeoSeries
In [7]: joined = pd.concat([world.geometry, cities.geometry])

# Appending GeoDataFrames
In [8]: europe = world[world.continent == 'Europe']

In [9]: asia = world[world.continent == 'Asia']

In [10]: eurasia = pd.concat([europe, asia])
标签 , ,
这篇文章对您有用吗?

我们要如何帮助您?

欢迎留下您的宝贵建议

Please enter your comment!
Please enter your name here