Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Computing time difference with timezone in Series with one row gives wrong result #12290
Comments
|
hmm that does look like a bug. |
jreback
added Bug Timezones Difficulty Intermediate Effort Low
labels
Feb 11, 2016
jreback
added this to the
Next Major Release
milestone
Feb 11, 2016
|
Where is "-" being implemented in for |
|
@gfyoung that's the right place. you should just step thru. |
|
I was able to track the bug down to this line here. For some strange reason, the What I did was this, using a local installation of the codebase:
You should be able to see my confusion. |
|
that IS odd. |
This was referenced Feb 12, 2016
jreback
modified the milestone: 0.18.0, Next Major Release
Feb 12, 2016
gfyoung
added a commit
to gfyoung/pandas
that referenced
this issue
Feb 12, 2016
|
|
gfyoung |
29581d1
|
polart commentedFeb 11, 2016
When there are only one row containing timestamps with timezone in DataFrame, computing time difference between columns gives incorrect result - always '0 days':
If there are more than one row, result is correct:
One row containing timestamps in naive datetime also gives correct result:
Installed versions: