pitrou commented on code in PR #46035:
URL: https://github.com/apache/arrow/pull/46035#discussion_r2077708292
##########
docs/source/python/csv.rst:
##########
@@ -29,8 +29,8 @@ The features currently offered are the following:
such as ``my_data.csv.gz``)
* fetching column names from the first row in the CSV file
* column-wise type inference and conversion to one of ``null``, ``int64``,
- ``float64``, ``date32``, ``time32[s]``, ``timestamp[s]``, ``timestamp[ns]``,
- ``string`` or ``binary`` data
+ ``float64``, ``date32``, ``time32[s]``, ``timestamp[s]``, ``timestamp[ns]``,
+ ``duration (from numeric strings)``, ``string`` or ``binary`` data
Review Comment:
Nit: markup
```suggestion
``duration`` (from numeric strings), ``string`` or ``binary`` data
```
##########
docs/source/python/csv.rst:
##########
@@ -125,6 +125,8 @@ a :class:`ConvertOptions` instance and pass it to
:func:`read_csv`::
}
))
+To assign a column as ``duration``, the CSV values must be numeric strings
that match the expected unit (e.g., ``"60000"`` for 60 seconds when using
``duration[ms]``).
+
Review Comment:
```suggestion
.. note::
To assign a column as ``duration``, the CSV values must be numeric strings
that match the expected unit (e.g. ``60000`` for 60 seconds when
using ``duration[ms]``).
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]