-
Notifications
You must be signed in to change notification settings - Fork 84
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
Add more fill variants #1310
Add more fill variants #1310
Conversation
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.
Please add testing to show functional behaviour, a release note would be good to, see [1] for using reno to add a release note.
[1] https://docs.openstack.org/reno/latest/user/usage.html#creating-new-release-notes
@Mergifyio rebase |
❌ Unable to rebase: user
|
@Mergifyio rebase |
✅ Branch has been successfully rebased |
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.
sort of surprised we didn't have this but you should update doc/source/rest.j2 as well.
not blocker but:
similar
is a odd keyword. not sure if there's existing keyword we can copy from other libs? bidirectional seems more accurate but maybe too long?- would be good to have
forward
andbackward
as well. i suspectforward
is the most common option.
I've been thinking about these for some time and the problem with plain
So, as you can see, in some cases it wouldn't be enough to do
So maybe implementing one of the above (or both?) would be a better option in the end? |
yeah, this makes sense to me. i didn't even consider the differences in order of your full fill solution. i'm ok with the naming. don't have anything better to suggest |
This should be ready for review, hope I didn't miss any points, but feel free to point them out :) One more thing that came to my mind during the final tests was that this probably should interact with resampling down (e.g., doing aggregates |
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.
lgtm. minor wording update
I'm not an expert in numpy, so this was borrowed from SO: https://stackoverflow.com/a/54508024.
I probably should rename this from "previous" to "similar" (or maybe some other better word?), as this thing covers the case when first point in resulting series could be NaN with backwards fill in addition to the standard forward fill.
Fixes #1266