Skip to content

Commit

Permalink
docs: correct the documented dtypes for read_gbq (#598)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: Tim Swast <swast@google.com>
  • Loading branch information
3 people committed May 10, 2023
1 parent d17ae24 commit b45651d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions docs/reading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,21 @@ column, based on the BigQuery table schema.
================== =========================
BigQuery Data Type dtype
================== =========================
DATE datetime64[ns]
DATETIME datetime64[ns]
BOOL boolean
FLOAT float
INT64 Int64
TIME datetime64[ns]
TIMESTAMP :class:`~pandas.DatetimeTZDtype` with ``unit='ns'`` and ``tz='UTC'``
FLOAT64 float64
TIME dbtime
DATE dbdate or object
DATETIME datetime64[ns] or object
TIMESTAMP datetime64[ns, UTC] or object
================== =========================

If any DATE/DATETIME/TIMESTAMP value is outside of the range of `pandas.Timestamp.min
<https://pandas.pydata.org/docs/reference/api/pandas.Timestamp.min.html>`__
(1677-09-22) and `pandas.Timestamp.max
<https://pandas.pydata.org/docs/reference/api/pandas.Timestamp.max.html>`__
(2262-04-11), the data type maps to the pandas `object` dtype.

.. _reading-bqstorage-api:

Improving download performance
Expand Down

0 comments on commit b45651d

Please sign in to comment.