Skip to content

Commit fefc53c

Browse files
API docs: elaborate on Result.to_df options (#1098)
Explain what passing `parse_dates=False` to `Result.to_df` does. Co-authored-by: Stefano Ottolenghi <stefano.ottolenghi@neo4j.com>
1 parent d418d2b commit fefc53c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/neo4j/_async/work/result.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,8 @@ async def to_df(
885885
If :data:`True`, columns that exclusively contain
886886
:class:`time.DateTime` objects, :class:`time.Date` objects, or
887887
:data:`None`, will be converted to :class:`pandas.Timestamp`.
888+
If :data:`False`, columns of the above types will be left as driver
889+
types (dtype ``object``).
888890
889891
:raises ImportError: if `pandas` library is not available.
890892
:raises ResultConsumedError: if the transaction from which this result

src/neo4j/_sync/work/result.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,8 @@ def to_df(
885885
If :data:`True`, columns that exclusively contain
886886
:class:`time.DateTime` objects, :class:`time.Date` objects, or
887887
:data:`None`, will be converted to :class:`pandas.Timestamp`.
888+
If :data:`False`, columns of the above types will be left as driver
889+
types (dtype ``object``).
888890
889891
:raises ImportError: if `pandas` library is not available.
890892
:raises ResultConsumedError: if the transaction from which this result

0 commit comments

Comments
 (0)