-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: add .resample(..).interpolate() #12925 #12974
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3445,9 +3445,7 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None, | |
else: | ||
return self._constructor(new_data).__finalize__(self) | ||
|
||
def interpolate(self, method='linear', axis=0, limit=None, inplace=False, | ||
limit_direction='forward', downcast=None, **kwargs): | ||
""" | ||
_shared_docs['interpolate'] = """ | ||
Interpolate values according to different methods. | ||
|
||
Please note that only ``method='linear'`` is supported for | ||
|
@@ -3521,6 +3519,14 @@ def interpolate(self, method='linear', axis=0, limit=None, inplace=False, | |
dtype: float64 | ||
|
||
""" | ||
|
||
@Appender(_shared_docs['interpolate'] % _shared_doc_kwargs) | ||
def interpolate(self, method='linear', axis=0, limit=None, inplace=False, | ||
limit_direction='forward', downcast=None, **kwargs): | ||
""" | ||
.. versionadded:: 0.18.1 | ||
``.resample(..).interpolate()`` is now supported (:issue:`12925`) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
""" | ||
if self.ndim > 2: | ||
raise NotImplementedError("Interpolate has not been implemented " | ||
"on Panel and Panel 4D objects.") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a versionadded tag (for 0.18.1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where exactly? In the
Resampler
class documentation or in theinterpolate
method?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right here