geopandas.read_file(filename, bbox=None, **kwargs)

Returns a GeoDataFrame from a file or URL.


filename: str

Either the absolute or relative path to the file or URL to be opened.

bbox : tuple | GeoDataFrame or GeoSeries, default None

Filter features by given bounding box, GeoSeries, or GeoDataFrame. CRS mis-matches are resolved if given a GeoSeries or GeoDataFrame.


Keyword args to be passed to the open or BytesCollection method in the fiona library when opening the file. For more information on possible keywords, type: import fiona; help(


geodataframe : GeoDataFrame


>>> df = geopandas.read_file("nybb.shp")