Skip to content

BUG: datetime/timedelta Series quantile() call #9694

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

Closed
wants to merge 1 commit into from
Closed

BUG: datetime/timedelta Series quantile() call #9694

wants to merge 1 commit into from

Conversation

samzhang111
Copy link

Changes to be committed:
modified: pandas/core/series.py
modified: pandas/tests/test_series.py

Fixes global reference to iNaT (should be tslib.iNaT) in series._maybe_box.
Adds test test_datetime_timedelta_quantiles to check for proper return value
in test_series.py.

Issue #9675

@@ -6837,6 +6837,10 @@ def test_repeat(self):
def test_unique_data_ownership(self):
# it works! #1807
Series(Series(["a", "c", "b"]).unique()).sort()

def test_datetime_timedelta_quantiles(self):
self.assertTrue(pd.isnull(Series([],dtype='M8[ns]').quantile(.5)))
Copy link
Contributor

Choose a reason for hiding this comment

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

add the issue as a comment here

@jreback
Copy link
Contributor

jreback commented Mar 21, 2015

pls add a release note for what's new/0.16.1 (bug fix section)

@jreback jreback added the Bug label Mar 23, 2015
@jreback jreback added this to the 0.16.1 milestone Mar 23, 2015
@@ -31,3 +31,5 @@ Performance Improvements

Bug Fixes
~~~~~~~~~

- Bug in ``Series.quantile`` on Series of type ``Datetime`` or ``Timedelta`` (:issue:`9675`)
Copy link
Contributor

Choose a reason for hiding this comment

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

mention that this is with an empty Series

@jreback
Copy link
Contributor

jreback commented Mar 23, 2015

pls squash to a single commit

Changes to be committed:
	modified:   pandas/core/series.py
	modified:   pandas/tests/test_series.py

Fixes global reference to iNaT (should be tslib.iNaT) in series._maybe_box.
Adds test `test_datetime_timedelta_quantiles` to check for proper return value
in test_series.py.

Issue #9675
@jreback
Copy link
Contributor

jreback commented Mar 25, 2015

merged via a477202

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants