-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Fix IntervalIndex.to_tuples() with NA values #18757
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
Codecov Report
@@ Coverage Diff @@
## master #18757 +/- ##
==========================================
- Coverage 91.63% 91.59% -0.05%
==========================================
Files 154 154
Lines 51419 51422 +3
==========================================
- Hits 47120 47102 -18
- Misses 4299 4320 +21
Continue to review full report at Codecov.
|
pandas/core/indexes/interval.py
Outdated
@@ -546,7 +546,11 @@ def from_tuples(cls, data, closed='right', name=None, copy=False): | |||
|
|||
def to_tuples(self): | |||
"""Return an Index of tuples of the form (left, right)""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess would be ok to add a kwarg na_tuple=False
here to select behavior as @shoyer suggests.
1ec263a
to
76f52cd
Compare
Added the |
76f52cd
to
7c330c6
Compare
thanks @jschendel |
Indeed, thanks! |
git diff upstream/master -u -- "*.py" | flake8 --diff