apache / apache/arrow

[Python][Doc] Incorrect parameter descriptions in SparseCSCMatrix.from_numpy

Open
#49,302 0 comments 0 reactions 1 assignee Claimed by @chilin0525 View on GitHub
Component: Documentation Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the bug, including details regarding any error messages, version, and platform.

The docstring for `SparseCSCMatrix.from_numpy` in `python/pyarrow/tensor.pxi` has incorrect parameter descriptions:

https://github.com/apache/arrow/blob/111495870686ef269254232b876de3aee2f919b6/python/pyarrow/tensor.pxi#L978-L995

- `indptr` is described as "Range of the rows" but should be "Range of the columns"
- `indices` is described as "Column indices" but should be "Row indices"

### Component(s)

Documentation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.