home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 297868909

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/967#issuecomment-297868909 https://api.github.com/repos/pydata/xarray/issues/967 297868909 MDEyOklzc3VlQ29tbWVudDI5Nzg2ODkwOQ== 5572303 2017-04-27T23:43:12Z 2017-04-27T23:43:12Z CONTRIBUTOR

A couple of things:

1.) Upon a little thinking I believe sort_values() doesn't make much sense, so I'm only working on sort_index()'. 2.) the way I handle theinplacekwarg is by ``` if inplace: self = self.isel(**{d: self.indexes[d].argsort() if ascending else self.indexes[d].argsort()[::-1] for d in dimensions}) else: return self.isel(**{d: self.indexes[d].argsort() if ascending else self.indexes[d].argsort()[::-1] for d in dimensions}) ``` But when I run ``` ds.sort_index(dims=['x', 'y'], inplace=True) ``` nothing changes. If I put apdb.set_trace()` right below the self = self*** I can evaluate self and see that it's what I want it to be. But somehow that assignment is not realized to the higher level. Any quick pointer?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  171077425
Powered by Datasette · Queries took 0.687ms · About: xarray-datasette