googleapis / googleapis/google-cloud-python

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

Đang mở
#14,482 0 bình luận 1 reaction 1 người được giao Được @tswast nhận Xem trên GitHub
api: bigquery type: feature request
Ngôn ngữ chính
Python
Star
5.4k
Fork
1.8k
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
122

Mô tả

`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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.