ENH: Infer column dtype when constructing object with pd.NA #58366
Labels
Dtype Conversions
Unexpected or buggy dtype conversions
Enhancement
NA - MaskedArrays
Related to pd.NA and nullable extension arrays
Needs Discussion
Requires discussion from core team before further action
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
When a list that contains integers and
pd.NA
s is cast in a pandas object, the column becomesdtype=object
. An example illustrating the issue:Feature Description
Alternative Solutions
Is it possible to cast it into an Extension Dtype such as
'Int64'
or at least a numeric dtype such asfloat64
orFloat64
?Additional Context
No response
The text was updated successfully, but these errors were encountered: