googleapis / googleapis/google-cloud-python

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

オープン
#14,482 コメント 0 件 リアクション 1 件 担当者 1 名 @tswast が担当を希望しています GitHub で見る
api: bigquery type: feature request
主要言語
Python
スター
5.4k
フォーク
1.8k
平均マージ
3日 4時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。