Skip to content

docs: fix reading dtypes #598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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