Skip to content

Commit 093efda

Browse files
MINOR: [Python][Docs] Fix mention of default for coerce_timestamps keyword in reading Parquet (apache#41498)
### Rationale for this change In the meantime we have updated the default for the `version` keyword from "1.0" to "2.4" and recently to "2.6", but this was not yet reflected in the description of the `coerce_timestamps` keyword. Authored-by: Joris Van den Bossche <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
1 parent 370818a commit 093efda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/pyarrow/parquet/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -761,9 +761,9 @@ def _sanitize_table(table, new_schema, flavor):
761761
by flavor argument. This take priority over the coerce_timestamps option.
762762
coerce_timestamps : str, default None
763763
Cast timestamps to a particular resolution. If omitted, defaults are chosen
764-
depending on `version`. By default, for ``version='1.0'`` (the default)
765-
and ``version='2.4'``, nanoseconds are cast to microseconds ('us'), while
766-
for other `version` values, they are written natively without loss
764+
depending on `version`. For ``version='1.0'`` and ``version='2.4'``,
765+
nanoseconds are cast to microseconds ('us'), while for
766+
``version='2.6'`` (the default), they are written natively without loss
767767
of resolution. Seconds are always cast to milliseconds ('ms') by default,
768768
as Parquet does not have any temporal type with seconds resolution.
769769
If the casting results in loss of data, it will raise an exception

0 commit comments

Comments
 (0)