Skip to content

BUG/API: interpolate with limit=0 should mean no interpolation #9217

Closed
@shoyer

Description

@shoyer

Current behavior:

In [28]: s = pd.Series([1, 2, np.nan, np.nan, 5])

In [29]: s
Out[29]:
0     1
1     2
2   NaN
3   NaN
4     5
dtype: float64

In [30]: s.interpolate(limit=0)
Out[30]:
0    1
1    2
2    3
3    4
4    5
dtype: float64

But in fact, limit=0 in contrast to limit=None should mean no interpolation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions