Skip to content

DataFrame.__setitem__ with existing object target and extensionarray #20555

Closed
@TomAugspurger

Description

@TomAugspurger

This fails to update to the new type. I think it should.

df = pd.DataFrame({"A": ['a', 'b']})
df['A'] = DecimalArray(['1.0', '1.1'])
df.dtypes
A    object
dtype: object

Metadata

Metadata

Assignees

No one assigned

    Labels

    Dtype ConversionsUnexpected or buggy dtype conversionsExtensionArrayExtending pandas with custom dtypes or arrays.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions