Bug: dataframe_to_json_generator
doesn't support pandas.NA
type
#729
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
3.9.4
21.1.2
google-cloud-bigquery
version:2.20.0
Steps to reproduce
Code example
Stack trace
Suggested fix
Starting with pandas 1.0, an experimental pandas.NA value (singleton) is available to represent scalar missing values as
opposed to numpy.nan. Comparing the variable with itself (
value != value
) results in aTypeError
as thepandas.NA
value doesn't support type-casting to boolean.I am planning to make a PR that switches the syntax
value != value
on _pandas_helpers.py#L783 to use thepandas.isna
function but wanted to check if there is a better solution before I submit a patch?The text was updated successfully, but these errors were encountered: