DOC: Add include_fields example (#2459)

This commit is contained in:
Alan D. Snow
2022-06-11 10:16:24 +02:00
committed by GitHub
parent 1c55343af1
commit b28faaf521
+9
View File
@@ -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