Skip to content

ENH/API: errors argument for ExtensionArray.astype #36151

Closed
@dsaxton

Description

@dsaxton

Series.astype and DataFrame.astype both allow control over whether the original object should be returned on errors in conversion by setting the errors argument to either "ignore" or "raise". Should ExtensionArray.astype also allow this?

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.astype.html
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.astype.html

xref #35979

Metadata

Metadata

Assignees

No one assigned

    Labels

    API - ConsistencyInternal Consistency of API/BehaviorDtype ConversionsUnexpected or buggy dtype conversionsEnhancementExtensionArrayExtending pandas with custom dtypes or arrays.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions