Skip to content

Commit

Permalink
Save geoparquet schema version 1.1.0 and reword note on zstd compression
Browse files Browse the repository at this point in the history
Default CryoCloud image now has Geopandas 1.x, so can save to a non-beta version of GeoParquet schema now.
  • Loading branch information
weiji14 committed Aug 16, 2024
1 parent 395982e commit 2a0ae41
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions book/tutorials/photon_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,17 +384,15 @@
# pre-processing code above again.

# %%
gdf.to_parquet(
path="ATL07_photons.gpq", compression="zstd", schema_version="1.0.0-beta.1"
)
gdf.to_parquet(path="ATL07_photons.gpq", compression="zstd", schema_version="1.1.0")

# %% [markdown]
# ```{note} To compress or not?
# When storing your data, note that there is a tradeoff in terms of compression and read
# speeds. Uncompressed data would typically be fastest to read (assuming no network
# transfer) but result in large file sizes. We'll choose Zstandard (zstd) as the
# compression method here as it is typically faster to read (compared to the default
# 'snappy' compression codec), and still compresses well into a small file size.
# compression method here as it provides a balance between fast reads (quicker than the
# default 'snappy' compression codec), and good compression into a small file size.
# ```

# %%
Expand Down

0 comments on commit 2a0ae41

Please sign in to comment.