From b28faaf521779ee77b15ed8a396e5d2dbb8a9aa2 Mon Sep 17 00:00:00 2001 From: "Alan D. Snow" Date: Sat, 11 Jun 2022 03:16:24 -0500 Subject: [PATCH] DOC: Add include_fields example (#2459) --- doc/source/docs/user_guide/io.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/source/docs/user_guide/io.rst b/doc/source/docs/user_guide/io.rst index cb42e9b..f0c6371 100644 --- a/doc/source/docs/user_guide/io.rst +++ b/doc/source/docs/user_guide/io.rst @@ -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