Skip to content

BUG: GH10365 in interpolate_1d when method is piecewise_polynomial #10435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

kawochen
Copy link
Contributor

Starting point for closing #10365.
I only have the trivial case. I think this method (and perhaps other methods as well) needs #10383 for it to be useful.

s = Series([1, 2, 3, 4, np.nan, 6, np.nan])
result = s.interpolate(method='piecewise_polynomial')
expected = Series([1., 2., 3., 4., 5., 6., 7.])
assert_series_equal(expected, result)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add some tests with nans up front? (maybe for several other interpolate methods as well to make sure nothing breaking)

@jreback jreback added the Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate label Jun 25, 2015
@jreback jreback added this to the 0.17.0 milestone Jun 25, 2015
@kawochen
Copy link
Contributor Author

Added tests for krogh and barycentric.

@jreback
Copy link
Contributor

jreback commented Aug 5, 2015

can you rebase

@kawochen
Copy link
Contributor Author

kawochen commented Aug 6, 2015

Maybe I should just keep the tests for krogh and barbycentric? Piecewise polynomial needs higher order derivatives to be passed in for it to be useful -- otherwise it's just linear interpolation; not sure what a good way would be.

@jreback jreback modified the milestones: Next Major Release, 0.17.0 Aug 20, 2015
@jreback
Copy link
Contributor

jreback commented Aug 20, 2015

@kawochen what's the status of this?

@kawochen
Copy link
Contributor Author

Still don't have a good way to pass in the higher order derivatives. Will close if for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants