kevingurney commented on code in PR #45973:
URL: https://github.com/apache/arrow/pull/45973#discussion_r2029342822


##########
matlab/doc/matlab_interface_for_apache_arrow_design.md:
##########
@@ -179,47 +177,67 @@ Roughly speaking, local memory sharing workflows can be 
divided into two categor
 
 To share a MATLAB `arrow.Array` with PyArrow efficiently, a user could use the 
`exportToCDataInterface` method to export the Arrow memory wrapped by an 
`arrow.Array` to the C Data Interface format, consisting of two C-style 
structs, [`ArrowArray`] and [`ArrowSchema`], which represent the Arrow data and 
associated metadata. 
 
-Memory addresses to the `ArrowArray` and `ArrowSchema` structs are returned by 
the call to `exportToCDataInterface`. These addresses can be passed to Python 
directly, without having to make any copies of the underlying Arrow data 
structures that they refer to. A user can then wrap the underlying data pointed 
to by the `ArrowArray` struct (which is already in the [Arrow Columnar 
Format]), as well as extract the necessary metadata from the `ArrowSchema` 
struct, to create a `pyarrow.Array` by using the static method 
`py.pyarrow.Array._import_from_c`. 
+Memory addresses for the `ArrowArray` and `ArrowSchema` structs are returned 
by the call to `export`. These addresses can be passed to Python directly, 
without having to make any copies of the underlying Arrow data structures that 
they refer to. A user can then wrap the underlying data pointed to by the 
`ArrowArray` struct (which is already in the [Arrow Columnar Format]), as well 
as extract the necessary metadata from the `ArrowSchema` struct, to create a 
`pyarrow.Array` by using the static method `pyarrow.Array._import_from_c`. 
+
+Multiple lines of Python are required to import the Arrow array from MATLAB. 
Therefore, the function 
[`pyrunfile`]((https://www.mathworks.com/help/matlab/ref/pyrunfile.html)) can 
be used when can run Python scripts defined in an external file.

Review Comment:
   ```suggestion
   Multiple lines of Python are required to import the Arrow array from MATLAB. 
Therefore, the function 
[`pyrunfile`]((https://www.mathworks.com/help/matlab/ref/pyrunfile.html)) can 
be used which can run Python scripts defined in an external file.
   ```



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