Skip to content

Commit f641fad

Browse files
author
tworec
committed
doc fixes
1 parent 2407e4e commit f641fad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/source/io.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4451,25 +4451,25 @@ The key functions are:
44514451
Supported Data Types
44524452
++++++++++++++++++++
44534453

4454-
Pandas supports these all `BigQuery data types <https://cloud.google.com/bigquery/data-types>`__:
4454+
Pandas supports all these `BigQuery data types <https://cloud.google.com/bigquery/data-types>`__:
44554455
``STRING``, ``INTEGER`` (64bit), ``FLOAT`` (64 bit), ``BOOLEAN`` and
44564456
``TIMESTAMP`` (microsecond precision). Data types ``BYTES`` and ``RECORD``
44574457
are not supported.
44584458

44594459
Integer and boolean ``NA`` handling
44604460
+++++++++++++++++++++++++++++++++++
44614461

4462-
.. versionadded:: 0.19
4462+
.. versionadded:: 0.20.0
44634463

44644464
Since all columns in BigQuery queries are nullable, and NumPy lacks of ``NA``
44654465
support for integer and boolean types, this module will store ``INTEGER`` or
44664466
``BOOLEAN`` columns with at least one ``NULL`` value as ``dtype=object``.
44674467
Otherwise those columns will be stored as ``dtype=int64`` or ``dtype=bool``
44684468
respectively.
44694469

4470-
This is opposite to default pandas behaviour which will promote integer
4470+
This is opposite to default pandas behavior which will promote integer
44714471
type to float in order to store NAs. See the :ref:`gotchas<gotchas.intna>`
4472-
for detailed explaination.
4472+
for detailed explanation.
44734473

44744474
While this trade-off works well for most cases, it breaks down for storing
44754475
values greater than 2**53. Such values in BigQuery can represent identifiers

doc/source/whatsnew/v0.20.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ Performance Improvements
8181
Bug Fixes
8282
~~~~~~~~~
8383

84-
- The :func:`pandas.io.gbq.to_gbq` method now stores ``INTEGER`` columns as ``dtype=object`` if they contain ``NULL`` values. Othewise they are stored as ``int64``. This prevents precision lost for integers greather than 2**53. Furthermore ``FLOAT`` columns with values above 10**4 are no more casted to ``int64`` which also caused precision lost (:issue: `14064`).
84+
- The :func:`~DataFrame.to_gbq` method now stores ``INTEGER`` columns as ``dtype=object`` if they contain ``NULL`` values. Otherwise they are stored as ``int64``. This prevents precision lost for integers greater than 2**53. Furthermore ``FLOAT`` columns with values above 10**4 are no more casted to ``int64`` which also caused precision lost (:issue: `14064`).

0 commit comments

Comments
 (0)