amol- commented on a change in pull request #11245: URL: https://github.com/apache/arrow/pull/11245#discussion_r719455904
########## File path: python/pyarrow/tensor.pxi ########## @@ -395,13 +435,34 @@ shape: {0.shape}""".format(self) def from_dense_numpy(cls, obj, dim_names=None): """ Convert numpy.ndarray to arrow::SparseCSRMatrix + + Parameters + ---------- + obj : numpy.ndarray + The source numpy array + dim_names : list, optional + The names of the dimensions. """ return cls.from_tensor(Tensor.from_numpy(obj, dim_names=dim_names)) @staticmethod def from_numpy(data, indptr, indices, shape, dim_names=None): """ - Create arrow::SparseCSRMatrix from numpy.ndarrays + Create arrow::SparseCSRMatrix from numpy.ndarrays. + + Parameters + ---------- + data : numpy.ndarray + Data used to populate the rows. Review comment: :+1: -- 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