Skip to content

ENH: .interpolate() with EA Dtypes #50950

Closed
@jbrockmendel

Description

@jbrockmendel
ser = pd.Series([1, 2, None, 4], dtype="Int64")

>>> ser.interpolate()
[...]
ValueError: Invalid fill method. Expecting pad (ffill) or backfill (bfill). Got linear

EABackedBlock.interpolate dispatches to EA.fillna, which doesn't handle method="linear". Getting this right probably will require implementing something new at the EA level.

Expected Behavior

pd.Series([1, 2, 3, 4])

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementExtensionArrayExtending pandas with custom dtypes or arrays.NA - MaskedArraysRelated to pd.NA and nullable extension arrays

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions