amol- commented on a change in pull request #11245:
URL: https://github.com/apache/arrow/pull/11245#discussion_r720238617
##########
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:
You are right, I copy/pasted from CSR / CSC and didn't notice in this
case was a multidimensional Tensor.
I would have expected that for CSF Tensor the arguments were multiple arrays
but they still are indptr+indices which confused me, I'll edit the docstring
accordingly.
--
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]