AlenkaF commented on code in PR #40313:
URL: https://github.com/apache/arrow/pull/40313#discussion_r1522653292


##########
docs/source/python/data.rst:
##########
@@ -230,6 +230,28 @@ like lists:
    nested_arr = pa.array([[], None, [1, 2], [None, 1]])
    print(nested_arr.type)
 
+ListView arrays
+~~~~~~~~~~~
+
+``pyarrow.array`` can create an alternate list type called ListView:
+
+.. ipython:: python
+
+   nested_arr = pa.array([[], None, [1, 2], [None, 1]], 
type=pa.list_view(pa.int64()))
+   print(nested_arr.type)
+
+ListView arrays have a different set of buffers than List arrays. The ListView 
array
+has both an offsets and sizes buffer, while a List array only has an offsets 
buffer.
+This allows for ListView arrays to specify out-of-order offsets:

Review Comment:
   ❤️ 



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