Skip to content
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

Period.end_time is same as start_time when period is D, B, H, T, or S #2124

Closed
ijmcf opened this issue Oct 25, 2012 · 0 comments
Closed

Period.end_time is same as start_time when period is D, B, H, T, or S #2124

ijmcf opened this issue Oct 25, 2012 · 0 comments
Labels
Bug Datetime Datetime data dtype
Milestone

Comments

@ijmcf
Copy link

ijmcf commented Oct 25, 2012

For example:

p = pandas.Period('2012-10-23', 'D')
p.start_time
<Timestamp: 2012-10-23 00:00:00>
p.end_time
<Timestamp: 2012-10-23 00:00:00>

There are tests, but they fail to detect the problem because they are comparing the end_time to a constant which is the start_time (so they pass).

@ghost ghost assigned changhiskhan Nov 2, 2012
wesm added a commit that referenced this issue Nov 4, 2012
* chang/to-timestamp:
  BUG: add same to_timestamp change to PeriodIndex
  BUG: change default frequency for to_timestamp
  BUG: start_time end_time to_timestamp bugs #2124 #2125 #1764
@wesm wesm closed this as completed Nov 4, 2012
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

No branches or pull requests

3 participants