- geopandas.read_feather(path, columns=None, **kwargs)¶
Load a Feather object from the file path, returning a GeoDataFrame.
You can read a subset of columns in the file using the
columnsparameter. However, the structure of the returned GeoDataFrame will depend on which columns you read:
if no geometry columns are read, this will raise a
ValueError- you should use the pandas read_feather method instead.
if the primary geometry column saved to this file is not included in columns, the first available geometry column will be set as the geometry column of the returned GeoDataFrame.
Requires ‘pyarrow’ >= 0.17.
New in version 0.8.
- pathstr, path object
- columnslist-like of strings, default=None
If not None, only these columns will be read from the file. If the primary geometry column is not included, the first secondary geometry read from the file will be set as the geometry column of the returned GeoDataFrame. If no geometry columns are present, a
ValueErrorwill be raised.
Any additional kwargs passed to pyarrow.feather.read_table().
>>> df = geopandas.read_feather("data.feather")
Specifying columns to read:
>>> df = geopandas.read_feather( ... "data.feather", ... columns=["geometry", "pop_est"] ... )