ShaiviAgarwal2 commented on code in PR #45160:
URL: https://github.com/apache/arrow/pull/45160#discussion_r1902968086
##########
docs/source/python/api/tables.rst:
##########
@@ -59,7 +59,92 @@ Dataframe Interchange Protocol
Tensors
-------
+PyArrow supports both dense and sparse tensors. Dense tensors store all data
values explicitly, while sparse tensors represent only the non-zero elements
and their locations, making them efficient for storage and computation.
+
+Dense Tensors
+-------------
+
.. autosummary::
:toctree: ../generated/
Tensor
+
+Sparse Tensors
+--------------
+
+PyArrow supports the following sparse tensor formats:
+
+.. autosummary::
+ :toctree: ../generated/
+
+ SparseCOOTensor
+ SparseCSRMatrix
+ SparseCSCMatrix
+ SparseCSFTensor
+
+### SparseCOOTensor
Review Comment:
Should I create a new file named `tensors.rst` in the same directory as
`tables.rst` (e.g., `docs/source/python/api/tensors.rst`) and then move tensor
content to `tensors.rst` ?
--
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]