From f6e626da5c09f46fbb1afc1ed181c79c1eb24d41 Mon Sep 17 00:00:00 2001 From: Minh Vu Date: Sat, 23 May 2026 00:59:49 +0200 Subject: [PATCH] docs: fix New York longitude in partial overwrite example --- mkdocs/docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkdocs/docs/api.md b/mkdocs/docs/api.md index ca6995a727..4c1e0f58ce 100644 --- a/mkdocs/docs/api.md +++ b/mkdocs/docs/api.md @@ -436,7 +436,7 @@ You can overwrite the record of `Paris` with a record of `New York`: from pyiceberg.expressions import EqualTo df = pa.Table.from_pylist( [ - {"city": "New York", "lat": 40.7128, "long": 74.0060}, + {"city": "New York", "lat": 40.7128, "long": -74.0060}, ] ) tbl.overwrite(df, overwrite_filter=EqualTo('city', "Paris")) @@ -452,7 +452,7 @@ long: double ---- city: [["New York"],["Amsterdam","San Francisco","Drachten"]] lat: [[40.7128],[52.371807,37.773972,53.11254]] -long: [[74.006],[4.896029,-122.431297,6.0989]] +long: [[-74.006],[4.896029,-122.431297,6.0989]] ``` If the PyIceberg table is partitioned, you can use `tbl.dynamic_partition_overwrite(df)` to replace the existing partitions with new ones provided in the dataframe. The partitions to be replaced are detected automatically from the provided arrow table.