jorisvandenbossche commented on issue #41469:
URL: https://github.com/apache/arrow/issues/41469#issuecomment-2090250933

   A different way to inspect the data using nanoarrow (using the `arr` from 
the code example above), where we can also see that each of the list child 
arrays has a "data_offset" buffer of 0 bytes:
   
   ```python
   >>> import nanoarrow as na
   >>> na.array(arr).inspect()
   <ArrowArray list<element: list<element: list<element: list<element: l>
   - length: 3
   - offset: 0
   - null_count: 3
   - buffers[2]:
     - validity <bool[1 b] 00000000>
     - data_offset <int32[16 b] 0 0 0 0>
   - dictionary: NULL
   - children[1]:
     'element': <ArrowArray list<element: list<element: list<element: 
list<elemen>
       - length: 0
       - offset: 0
       - null_count: 0
       - buffers[2]:
         - validity <bool[0 b] >
         - data_offset <int32[0 b] >
       - dictionary: NULL
       - children[1]:
         'element': <ArrowArray list<element: list<element: list<element: 
double>>
           - length: 0
           - offset: 0
           - null_count: 0
           - buffers[2]:
             - validity <bool[0 b] >
             - data_offset <int32[0 b] >
           - dictionary: NULL
           - children[1]:
             'element': <ArrowArray list<element: list<element: double>>>
               - length: 0
               - offset: 0
               - null_count: 0
               - buffers[2]:
                 - validity <bool[0 b] >
                 - data_offset <int32[0 b] >
               - dictionary: NULL
               - children[1]:
                 'element': <ArrowArray list<element: double>>
                   - length: 0
                   - offset: 0
                   - null_count: 0
                   - buffers[2]:
                     - validity <bool[0 b] >
                     - data_offset <int32[0 b] >
                   - dictionary: NULL
                   - children[1]:
                     'element': <ArrowArray double>
                       - length: 0
                       - offset: 0
                       - null_count: 0
                       - buffers[2]:
                         - validity <bool[0 b] >
                         - data <double[0 b] >
                       - dictionary: NULL
                       - children[0]:
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to