ENH: Allow convert_dtypes
to convert to pd.ArrowDtype
· Issue #49997 · pandas-dev/pandas (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
Feature Type
- Adding new functionality to pandas
- Changing existing functionality in pandas
- Removing existing functionality in pandas
Problem Description
Currently df.convert_dtypes()
will convert to nullable types (Int64, Boolean, etc), but it would be nice if there was an option to opt into the pyarrow-backed nullable types via pd.ArrowDtype
Feature Description
Maybe either
- New keyword argument
nullable_type="pandas"|"pyarrow"
- Refactor
io.nullable_backend
global setting tomode.nullable_backend
and allow that global config to apply todf.convert_dtypes
Alternative Solutions
For loop over the existing DataFrame object using astype
and constructing pd.ArrowDtype
?
Additional Context
No response