Skip to content

Commit f6e626d

Browse files
committed
docs: fix New York longitude in partial overwrite example
1 parent 3bd5f27 commit f6e626d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mkdocs/docs/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ You can overwrite the record of `Paris` with a record of `New York`:
436436
from pyiceberg.expressions import EqualTo
437437
df = pa.Table.from_pylist(
438438
[
439-
{"city": "New York", "lat": 40.7128, "long": 74.0060},
439+
{"city": "New York", "lat": 40.7128, "long": -74.0060},
440440
]
441441
)
442442
tbl.overwrite(df, overwrite_filter=EqualTo('city', "Paris"))
@@ -452,7 +452,7 @@ long: double
452452
----
453453
city: [["New York"],["Amsterdam","San Francisco","Drachten"]]
454454
lat: [[40.7128],[52.371807,37.773972,53.11254]]
455-
long: [[74.006],[4.896029,-122.431297,6.0989]]
455+
long: [[-74.006],[4.896029,-122.431297,6.0989]]
456456
```
457457

458458
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.

0 commit comments

Comments
 (0)