googleapis / googleapis/google-cloud-python

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

Ouverte
#14,482 0 commentaires 1 réaction 1 personne assignée Réclamée par @tswast Voir sur GitHub
api: bigquery type: feature request
Langage dominant
Python
Étoiles
5.4k
Forks
1.8k
Merge moyen
3 j 4 h
PR mergées (30 j)
122

Description

`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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.