mirror of
https://github.com/wassname/geopandas.git
synced 2026-09-09 11:22:50 +08:00
DOC: Add include_fields example (#2459)
This commit is contained in:
@@ -146,6 +146,15 @@ Field/Column Filters
|
||||
|
||||
Load in a subset of fields from the file:
|
||||
|
||||
.. note:: Requires Fiona 1.9+
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
gdf = geopandas.read_file(
|
||||
geopandas.datasets.get_path("naturalearth_lowres"),
|
||||
include_fields=["pop_est", "continent", "name"],
|
||||
)
|
||||
|
||||
.. note:: Requires Fiona 1.8+
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
Reference in New Issue
Block a user