googleapis / googleapis/google-cloud-python

Expose `dtype_backend` argument to align with other I/O methods

未关闭
#14,482 0 条评论 1 个 reaction 已指派 1 人 已被 @tswast 认领 在 GitHub 查看
api: bigquery type: feature request
主要语言
Python
星标
5.4k
派生
1.8k
平均合并
3 天 4 小时
30 天内合并 PR
122

描述

`dtypes_backend` options:

* `"default"` (current "mixed" behavior, where most extension dtypes are used but not Float64Dtype or StringDtype) -- edit: might want to check `dtype_backend` in pandas global options (per https://github.com/pandas-dev/pandas/issues/51433),
* None (all legacy types),
* `"numpy_nullable"` corresponds to existing behavior but also nullable floats (https://github.com/googleapis/google-cloud-python/issues/14483) and strings (somewhat related: https://github.com/googleapis/python-bigquery-pandas/issues/275#issuecomment-566100550).
* `"pyarrow"` (all Arrow dtypes)

Implementation note: we probably need to call `to_arrow` for all but default, where `to_dataframe` is still OK.

See also: https://github.com/pandas-dev/pandas/pull/51853

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。