Skip to content

ENH: Add area_limit to `fillna #60161

Open
@joshdunnlime

Description

@joshdunnlime

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

The pandas methods interpolate, ffill and bfill all have the area_limit options, however, fillna does not. It would be nice to add this.

Feature Description

DataFrame.fillna(value=None, *, method=None, axis=None, inplace=False, limit=None, area_limit=None, downcast=<no_default>)

Alternative Solutions

Interpolate with method='constant'. The somewhat obvious downsides to this are that constant isn't included in the scipy interpolation API.

Additional Context

See #56492 for this functionality added to ffill and bfill. It would be nice to have better API consistency between thee methods and also interpolate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNeeds DiscussionRequires discussion from core team before further action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions