Skip to content

BUG: date_range closed keyword with timezone aware start/end (GH12684) #13510

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

Conversation

jorisvandenbossche
Copy link
Member

closes #12684

@jorisvandenbossche jorisvandenbossche added Bug Datetime Datetime data dtype labels Jun 24, 2016
@jorisvandenbossche jorisvandenbossche added this to the 0.18.2 milestone Jun 24, 2016
@jreback
Copy link
Contributor

jreback commented Jun 24, 2016

lgtm

for i in intervals:
result = date_range(start=begin, end=end, closed=i)
self.assertEqual(result[0], begin)
self.assertEqual(result[-1], end)
Copy link
Member Author

Choose a reason for hiding this comment

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

I removed this test, as I think it is testing the wrong behaviour (it tests that the different closed options give all the same result, which should not be (and is not the case with naive timestamps))

@jorisvandenbossche jorisvandenbossche force-pushed the bug-daterange-closed-tz branch from 43e1679 to d5744f7 Compare June 24, 2016 22:28
@codecov-io
Copy link

Current coverage is 84.33%

Merging #13510 into master will increase coverage by <.01%

@@             master     #13510   diff @@
==========================================
  Files           138        138          
  Lines         51107      51111     +4   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          43103      43107     +4   
  Misses         8004       8004          
  Partials          0          0          

Powered by Codecov. Last updated by bf4786a...d5744f7

@jorisvandenbossche jorisvandenbossche merged commit 3944a36 into pandas-dev:master Jun 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: date_range closed parameter not honoured in pandas 0.18.0
3 participants