danepitkin commented on PR #39813:
URL: https://github.com/apache/arrow/pull/39813#issuecomment-1920424038

   ```
   >>> import pyarrow as pa
   >>>
   >>> values = [1, 2, 3, None]
   >>> offsets = [0, 1, 2]
   >>> sizes = [2, 2, 2]
   >>> 
   >>> pa.ListViewArray.from_arrays(offsets, sizes, values)
   <pyarrow.lib.ListViewArray object at 0x13ad6e200>
   [
     [
       1,
       2
     ],
     [
       2,
       3
     ],
     [
       3,
       null
     ]
   ]
   >>>
   >>> pa.LargeListViewArray.from_arrays(offsets, sizes, values)
   <pyarrow.lib.LargeListViewArray object at 0x13ad6e440>
   [
     [
       1,
       2
     ],
     [
       2,
       3
     ],
     [
       3,
       null
     ]
   ]
   >>>
   >>> pa.list_view(pa.string())
   ListViewType(list_view<item: string>)
   >>> pa.large_list_view(pa.string())
   LargeListViewType(large_list_view<item: string>)
   ```


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