Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
unwrap Series to try to debug appveyor breakage
  • Loading branch information
jbrockmendel committed Feb 21, 2018
commit f942be918738ece803b0368c08720a2f25b50afd
4 changes: 4 additions & 0 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3949,6 +3949,10 @@ def _evaluate_compare(self, other):
result = _comp_method_OBJECT_ARRAY(
op, self.values, other)
else:
if isinstance(other, ABCSeries):
Copy link
Contributor

Choose a reason for hiding this comment

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

What are the potential types of other here? Series, Index, anything else? If it's just those two, I think unconditionally doing other = other._values will work. If other may also be an ndarray then ignore this.

Copy link
Member Author

Choose a reason for hiding this comment

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

This was an unsuccessful attempt to debug a failing appveyor build. Let's circle back to the other._values idea once that problem is sorted out.

# Windows builds with some numpy versions (1.13)
# require specifically unwrapping Series GH#19800
other = other.values
with np.errstate(all='ignore'):
result = op(self.values, np.asarray(other))

Expand Down