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 2021/12/23 14:46:02 UTC

[GitHub] [arrow] jorisvandenbossche commented on a change in pull request #11993: ARROW-15153: [Python] Expose ReferencedBufferSize to python [WIP]

jorisvandenbossche commented on a change in pull request #11993:
URL: https://github.com/apache/arrow/pull/11993#discussion_r774615391



##########
File path: python/pyarrow/array.pxi
##########
@@ -988,12 +988,64 @@ cdef class Array(_PandasConvertible):
         """
         Total number of bytes consumed by the elements of the array.
         """
+        return self.get_refererenced_buffer_size()
+
+    def get_total_size_by_buffer(self):
+        """
+        Total size of the buffer calculated by the sum of all buffers 
+        in the array
+        """
         size = 0
         for buf in self.buffers():
             if buf is not None:
                 size += buf.size
         return size
 
+    def get_refererenced_buffer_size(self):

Review comment:
       ```suggestion
       def get_referenced_buffer_size(self):
   ```




-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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