home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 552987067

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
552987067 MDU6SXNzdWU1NTI5ODcwNjc= 3712 [Documentation/API?] {DataArray,Dataset}.sortby is stable sort? 4666753 open 0     0 2020-01-21T16:27:37Z 2022-04-09T02:26:34Z   CONTRIBUTOR      

I noticed that {DataArray,Dataset}.sortby() are implemented using np.lexsort(), which is a stable sort. Can we expect this function to remain a stable sort in the future even if the implementation is changed for some reason?

It is not explicitly stated in the docs that the sorting will be stable. If this function is meant to always be stable, I think the documentation should explicitly state this. If not, I think it would be helpful to have an optional argument to ensure that the sort is kept stable in case the implementation changes in the future.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3712/reactions",
    "total_count": 3,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 1,
    "rocket": 0,
    "eyes": 1
}
    13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 0 rows from issue in issue_comments
Powered by Datasette · Queries took 0.78ms · About: xarray-datasette