Skip to content
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

ENH: add .resample(..).interpolate() #12925 #12974

Closed
wants to merge 1 commit into from
Closed

ENH: add .resample(..).interpolate() #12925 #12974

wants to merge 1 commit into from

Conversation

benoit9126
Copy link
Contributor

@benoit9126 benoit9126 commented Apr 24, 2016

These tests simply check that df.resample(...).mean().interpolate() gives the same result than df.resample(...).interpolate()

  • passes git diff upstream/master | flake8 --diff
  • whatsnew entry

-> Edit: 24/04/2016 20:25

@jreback jreback changed the title Bug 12925 ENH: add .resample(..).interpolate() #12925 Apr 24, 2016
@Appender(_shared_docs['interpolate'] % _shared_docs_kwargs)
def interpolate(self, method='linear', axis=0, limit=None, inplace=False,
limit_direction='forward', downcast=None, **kwargs):
tmp = self._upsample(None, limit=limit)
Copy link
Contributor

Choose a reason for hiding this comment

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

result =

Copy link
Contributor

Choose a reason for hiding this comment

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

don't pass limit here, its handled in interpolate

@jreback jreback added Enhancement Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Resample resample method labels Apr 24, 2016

import pandas as pd
import pandas.compat as compat
import pandas.core.algorithms as algos
Copy link
Contributor

Choose a reason for hiding this comment

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

pls don't move things around uncessariliy.

@jreback jreback added this to the 0.18.1 milestone Apr 25, 2016
@jreback
Copy link
Contributor

jreback commented Apr 25, 2016

minor doc-change. pls squash as well.

@jreback
Copy link
Contributor

jreback commented Apr 26, 2016

ping when green.

@jreback jreback closed this in 8ab7d3a Apr 26, 2016
@jreback
Copy link
Contributor

jreback commented Apr 26, 2016

thanks!

limit_direction='forward', downcast=None, **kwargs):
"""
.. versionadded:: 0.18.1
``.resample(..).interpolate()`` is now supported (:issue:`12925`)
Copy link
Member

Choose a reason for hiding this comment

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

Putting this here in the beginning of the docstring does not really work well I think. Because the rest (the shared_docs['interpolate']) are appended, the explanation starts with 'versionadded', while it should rather be "Interpolate values according to different methods" (although, as long as it is not listed in an API overview, it is not really that big of a problem. But, it should actually be added here:http://pandas-docs.github.io/pandas-docs-travis/api.html#upsampling)

@jreback
Copy link
Contributor

jreback commented Apr 26, 2016

@jorisvandenbossche ahh, ok, let me fix that.

@benoit9126 benoit9126 deleted the bug_12925 branch April 27, 2016 06:54
@benoit9126
Copy link
Contributor Author

Thanks for your help too!

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

Successfully merging this pull request may close these issues.

ENH: resample().interpolate()
3 participants