-
Notifications
You must be signed in to change notification settings - Fork 116
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
SNOW-1669082: Add support for Resampler.asfreq
#2310
Conversation
Signed-off-by: Naren Krishna <[email protected]>
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!
Co-authored-by: Jonathan Shi <[email protected]>
@@ -56,3 +69,5 @@ def test_asfreq_negative(): | |||
snow_df.asfreq(freq="5s", method="ffill", normalize=True) | |||
with pytest.raises(NotImplementedError): | |||
snow_df.asfreq(freq="5s", method="ffill", fill_value=2) |
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.
Why are we testing DataFrame.asfreq
here when the test file is test_resample_asfreq
?
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.
DataFrame/Series.asfreq
ends up just calling the resample
implementation with the first
aggregation. I didn't realize at that time the Resampler
class also has an asfreq
so this PR just adds that. That's why all 3 are tested in the same file under the resample folder.
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 overall. Just a small question.
Signed-off-by: Naren Krishna <[email protected]>
SNOW-1669082
This PR implements
Resampler.asfreq
which follows the same underlying code path asSeries.asfreq
andDataFrame.asfreq
which was implemented in a previous PR.