westonpace commented on a change in pull request #63: URL: https://github.com/apache/arrow-cookbook/pull/63#discussion_r702143914
########## File path: python/source/create.rst ########## @@ -7,6 +7,68 @@ Tensors and all other Arrow entities. .. contents:: +Creating Arrays +=============== + +Arrow keeps data in continuous arrays optimised for memory footprint +and SIMD analyses. In Python it's possible to build :class:`pyarrow.Array` +starting from Python ``lists`` (or sequence types in general), +``numpy`` arrays and ``pandas`` Series. + +.. testcode:: + + import pyarrow as pa + + array = pa.array([1, 2, 3, 4, 5]) + +.. testcode:: + + print(array) + +.. testoutput:: + + [ + 1, + 2, + 3, + 4, + 5 + ] + +Arrays can also provide a ``mask`` to specify which values should Review comment: If you're planning on expanding support then I agree it should not be mentioned here. -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org