You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2020/07/13 20:29:14 UTC

[GitHub] [arrow] wesm commented on a change in pull request #7737: ARROW-9445: [Python] Revert Array.equals changes + expose comparison ops in compute

wesm commented on a change in pull request #7737:
URL: https://github.com/apache/arrow/pull/7737#discussion_r453912928



##########
File path: python/pyarrow/table.pxi
##########
@@ -189,6 +185,12 @@ cdef class ChunkedArray(_PandasConvertible):
         """
         return _pc().is_valid(self)
 
+    def __eq__(self, other):
+        try:
+            return self.equals(other)
+        except TypeError:
+            return NotImplemented

Review comment:
       I think adding it to Array for consistency sounds good




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org