Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Update lexsort docstring for axis kwargs #24935

Merged
merged 4 commits into from
Jan 16, 2024
Merged

Conversation

liang3zy22
Copy link
Contributor

@liang3zy22 liang3zy22 commented Oct 16, 2023

[skip actions][skip cirrus][skip azp]

try to address the docstring part of #10521

[skip actions][skip cirrus][skip azp]

Signed-off-by: Liang Yan <ckgppl_yan@sina.cn>
@mdhaber
Copy link
Contributor

mdhaber commented Dec 31, 2023

I don't think this closes gh-10521; but with some adjustments, it would address the documentation part of the issue. I've taken the liberty of implementing my own suggestions for simplification. LMK if this still looks good @liang3zy22.

[skip cirrus] [skip azp] [skip actions]
@liang3zy22
Copy link
Contributor Author

It looks good, @mdhaber . It made the lexsort doc more clear. I think my change is a tutorial for how to use lexsort and the axis parameter.

@mattip
Copy link
Member

mattip commented Jan 16, 2024

Merging. Any more cleanup can be done in a follow-up. Thanks @liang3zy22 and @mdhaber this is a nice improvement.

@mattip mattip merged commit 39ab2d4 into numpy:main Jan 16, 2024
4 checks passed
The `k` different "columns" to be sorted. The last column (or row if
`keys` is a 2D array) is the primary sort key.
keys : (k, m, n, ...) array-like
The `k` keys to be sorted. The *last* key (e.g, the last
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The `k` keys to be sorted. The *last* key (e.g, the last
The `k` keys to be sorted. The *last* key (e.g., the last

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, I just meant to go through this one more time. I added that to remind myself to fix it one day, but NBD.

@liang3zy22 liang3zy22 deleted the lexsortdoc branch January 17, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants