Skip to content

TST: add pattern for nearest #33939

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

Merged
merged 3 commits into from
May 6, 2020

Conversation

kotamatsuoka
Copy link
Contributor

@kotamatsuoka kotamatsuoka commented May 2, 2020

@kotamatsuoka kotamatsuoka changed the title TST: add pattern for nearest() TST: add pattern for nearest May 2, 2020
@alimcmaster1 alimcmaster1 added the Testing pandas testing functions or related to the test suite label May 2, 2020
@jreback jreback added Resample resample method Timezones Timezone data dtype labels May 2, 2020
@jreback jreback added this to the 1.1 milestone May 2, 2020
@@ -535,11 +535,13 @@ def test_upsample_with_limit():
tm.assert_series_equal(result, expected)


def test_nearest_upsample_with_limit():
rng = date_range("1/1/2000", periods=3, freq="5t")
@pytest.mark.parametrize("freq", ["Y", "10M", "5D", "10H", "5Min", "10S"])
Copy link
Contributor

Choose a reason for hiding this comment

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

you need to add the tz_aware_fixture here as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @jreback. I've done.

@kotamatsuoka kotamatsuoka requested a review from jreback May 3, 2020 02:18
@kotamatsuoka kotamatsuoka force-pushed the add-datetime-resample-tests branch from 9c0b287 to e9be06b Compare May 3, 2020 03:57
@kotamatsuoka kotamatsuoka force-pushed the add-datetime-resample-tests branch from 7f0339f to a357330 Compare May 4, 2020 00:38
@jreback jreback merged commit 3c17371 into pandas-dev:master May 6, 2020
@jreback
Copy link
Contributor

jreback commented May 6, 2020

thanks @kotamatsuoka

rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resample resample method Testing pandas testing functions or related to the test suite Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: resample().nearest() throws an exception if tz is provided for the DatetimeIndex
4 participants