Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
BUG: Catch overflow in both directions for checked add #14453
Conversation
|
@jreback : Doesn't seem like Appveyor is picking up this PR. |
codecov-io
commented
Oct 19, 2016
•
Current coverage is 85.25% (diff: 68.75%)@@ master #14453 diff @@
==========================================
Files 140 140
Lines 50640 50654 +14
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 43175 43184 +9
- Misses 7465 7470 +5
Partials 0 0
|
jorisvandenbossche
added Bug Timedelta
labels
Oct 19, 2016
jreback
added this to the
0.19.1
milestone
Oct 20, 2016
|
lgtm. can you add a whatsnew note. put in a new API Changes section in 0.19.1 |
|
Please no api change section for 0.19.1. We put it in the bug section for 0.19.0, so then can put it here there as well I think (we maybe should have put it in the api changes section for 0.19.0 ..) |
|
bug fix section is fine |
jorisvandenbossche
merged commit 83a380c
into pandas-dev:master
Oct 22, 2016
1 check passed
|
@gfyoung Thanks! |
gfyoung
deleted the
gfyoung:add-overflow-bug branch
Oct 22, 2016
|
@jreback , @jorisvandenbossche : So while it's good that we're catching underflow, when I try to integrate this check with tdi + tdi OR tdi + td, we run into issues: >>> import pandas as pd
>>>
>>> tdi = pd.TimedeltaIndex([pd.NaT])
>>> td = pd.Timedelta('1 days')
>>>
>>> tdi - td # Should return TimedeltaIndex([pd.NaT])
...
OverflowError: Overflow in int64 additionThis is because we are doing the checked add with the |
|
Additionally mask for that in the checking code? |
|
Hmmm...I suppose, though that will impact performance again |
jorisvandenbossche
added a commit
to jorisvandenbossche/pandas
that referenced
this pull request
Nov 2, 2016
|
|
gfyoung + jorisvandenbossche |
c93ba9f
|
amolkahat
added a commit
to amolkahat/pandas
that referenced
this pull request
Nov 26, 2016
|
|
gfyoung + amolkahat |
3b4c25b
|
gfyoung
added a commit
to gfyoung/pandas
that referenced
this pull request
Dec 7, 2016
|
|
gfyoung |
8e21e60
|
gfyoung
added a commit
to gfyoung/pandas
that referenced
this pull request
Dec 7, 2016
|
|
gfyoung |
46909f0
|
gfyoung
referenced
this pull request
Dec 7, 2016
Merged
BUG: Prevent addition overflow with TimedeltaIndex #14816
gfyoung
added a commit
to gfyoung/pandas
that referenced
this pull request
Dec 10, 2016
|
|
gfyoung |
ce48455
|
gfyoung
added a commit
to gfyoung/pandas
that referenced
this pull request
Dec 11, 2016
|
|
gfyoung |
7990eec
|
gfyoung
added a commit
to gfyoung/pandas
that referenced
this pull request
Dec 15, 2016
|
|
gfyoung |
e57f3bb
|
gfyoung
added a commit
to gfyoung/pandas
that referenced
this pull request
Dec 15, 2016
|
|
gfyoung |
d238fbb
|
gfyoung
added a commit
to gfyoung/pandas
that referenced
this pull request
Dec 15, 2016
|
|
gfyoung |
59ba12b
|
gfyoung
added a commit
to gfyoung/pandas
that referenced
this pull request
Dec 15, 2016
|
|
gfyoung |
4f8a12d
|
gfyoung
added a commit
to gfyoung/pandas
that referenced
this pull request
Dec 15, 2016
|
|
gfyoung |
7a3e54e
|
gfyoung
added a commit
to gfyoung/pandas
that referenced
this pull request
Dec 17, 2016
|
|
gfyoung |
a086db6
|
jorisvandenbossche
added a commit
that referenced
this pull request
Dec 17, 2016
|
|
gfyoung + jorisvandenbossche |
bdbebc4
|
ischurov
added a commit
to ischurov/pandas
that referenced
this pull request
Dec 19, 2016
|
|
gfyoung + ischurov |
ac5ec9d
|
ShaharBental
added a commit
to ShaharBental/pandas
that referenced
this pull request
Dec 26, 2016
|
|
gfyoung + ShaharBental |
3398529
|
gfyoung commentedOct 19, 2016
Port of #14324 after project name change.