amol- commented on a change in pull request #11245:
URL: https://github.com/apache/arrow/pull/11245#discussion_r720244379



##########
File path: python/pyarrow/tensor.pxi
##########
@@ -771,6 +870,22 @@ shape: {0.shape}""".format(self)
                    dim_names=None):
         """
         Create arrow::SparseCSFTensor from numpy.ndarrays
+
+        Parameters
+        ----------
+        data : numpy.ndarray
+            Data used to populate the rows.
+        indptr : numpy.ndarray
+            Range of the rows,
+            The i-th row spans from `indptr[i]` to `indptr[i+1]` in the data.
+        indices : numpy.ndarray
+            Column indices of the corresponding non-zero values.

Review comment:
       I tweaked the docstrings to match what we have in  
https://github.com/apache/arrow/blob/master/format/SparseTensor.fbs
   
   Hopefully this should do

##########
File path: python/pyarrow/tensor.pxi
##########
@@ -771,6 +870,22 @@ shape: {0.shape}""".format(self)
                    dim_names=None):
         """
         Create arrow::SparseCSFTensor from numpy.ndarrays
+
+        Parameters
+        ----------
+        data : numpy.ndarray
+            Data used to populate the rows.
+        indptr : numpy.ndarray
+            Range of the rows,
+            The i-th row spans from `indptr[i]` to `indptr[i+1]` in the data.
+        indices : numpy.ndarray
+            Column indices of the corresponding non-zero values.
+        shape : tuple
+            Shape of the matrix.
+        axis_order : list, optional
+            The order of the axis.

Review comment:
       Changed docstring to match what we have in 
https://github.com/apache/arrow/blob/master/format/SparseTensor.fbs
   




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