Skip to content

Commit a08ac85

Browse files
committed
PYTHON-2724 Add FAQ to PyMongo documentation pointing users to PyMongoArrow (#651)
(cherry picked from commit a322590)
1 parent e6e1dea commit a08ac85

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

doc/faq.rst

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ multithreaded contexts with ``fork()``, see http://bugs.python.org/issue6721.
4545

4646
.. _connection-pooling:
4747

48+
Can PyMongo help me load the results of my query as a Pandas ``DataFrame``?
49+
---------------------------------------------------------------------------
50+
51+
While PyMongo itself does not provide any APIs for working with
52+
numerical or columnar data,
53+
`PyMongoArrow <https://mongo-arrow.readthedocs.io/en/pymongoarrow-0.1.1/>`_
54+
is a companion library to PyMongo that makes it easy to load MongoDB query result sets as
55+
`Pandas DataFrames <https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html>`_,
56+
`NumPy ndarrays <https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html>`_, or
57+
`Apache Arrow Tables <https://arrow.apache.org/docs/python/generated/pyarrow.Table.html>`_.
58+
4859
How does connection pooling work in PyMongo?
4960
--------------------------------------------
5061

@@ -440,8 +451,8 @@ No. PyMongo creates Python threads which
440451
`PythonAnywhere <https://www.pythonanywhere.com>`_ does not support. For more
441452
information see `PYTHON-1495 <https://jira.mongodb.org/browse/PYTHON-1495>`_.
442453

443-
How can I use something like Python's :mod:`json` module to encode my documents to JSON?
444-
----------------------------------------------------------------------------------------
454+
How can I use something like Python's ``json`` module to encode my documents to JSON?
455+
-------------------------------------------------------------------------------------
445456
:mod:`~bson.json_util` is PyMongo's built in, flexible tool for using
446457
Python's :mod:`json` module with BSON documents and `MongoDB Extended JSON
447458
<https://docs.mongodb.com/manual/reference/mongodb-extended-json/>`_. The

0 commit comments

Comments
 (0)