Write a GeoDataFrame to the Parquet format.
By default, all geometry columns present are serialized to WKB format in the file.
Requires ‘pyarrow’.
Added in version 0.8.
If True
, always include the dataframe’s index(es) as columns in the file output. If False
, the index(es) will not be written to the file. If None
, the index(ex) will be included as columns in the file output except RangeIndex which is stored as metadata only.
Name of the compression to use. Use None
for no compression.
The encoding to use for the geometry columns. Defaults to “WKB” for maximum interoperability. Specify “geoarrow” to use one of the native GeoArrow-based single-geometry type encodings. Note: the “geoarrow” option is part of the newer GeoParquet 1.1 specification, should be considered as experimental, and may not be supported by all readers.
Writes the bounding box column for each row entry with column name ‘bbox’. Writing a bbox column can be computationally expensive, but allows you to specify a bbox in : func:read_parquet for filtered reading. Note: this bbox column is part of the newer GeoParquet 1.1 specification and should be considered as experimental. While writing the column is backwards compatible, using it for filtering may not be supported by all readers.
GeoParquet specification version; if not provided, will default to latest supported stable version (1.0.0).
Additional keyword arguments passed to pyarrow.parquet.write_table()
.
Examples
>>> gdf.to_parquet('data.parquet')
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4