geopandas.GeoSeries.from_arrow#
- classmethod GeoSeries.from_arrow(arr, **kwargs)[来源]#
从带有 GeoArrow 扩展类型的 Arrow 数组对象构造一个 GeoSeries。
有关GeoArrow规范的详细信息,请参见 https://geoarrow.org/。
该函数接受实现Arrow PyCapsule协议的任何Arrow数组对象(即具有
__arrow_c_array__方法)。在1.0版本中添加。
- Parameters:
- arrpyarrow.Array, Arrow array
任何实现Arrow PyCapsule协议的数组对象 (即,具有一个
__arrow_c_array__或__arrow_c_stream__方法)。数组的类型应该是geoarrow几何类型之一。- **kwargs
其他传递给GeoSeries构造函数的参数。
- Returns:
- GeoSeries