Skip to content

Commit

Permalink
Corrected schema for ListType example in Getting Started.
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyclements committed Jan 26, 2024
1 parent 1f92c37 commit 93f1ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ names and values are corresponding :class:`numpy.ndarray` instances::

Arrays (and nested arrays) are also supported::

from pyarrow import int32, list_
schema = Schema({'_id': int, 'amount': float, 'txns': list_(int32())})
from pyarrow import list_, string
schema = Schema({'_id': int, 'amount': float, 'txns': list_(string())})
arrow_table = client.db.data.find_arrow_all({'amount': {'$gt': 0}}, schema=schema)


Expand Down

0 comments on commit 93f1ab2

Please sign in to comment.