home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 485523566

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/2710#issuecomment-485523566 https://api.github.com/repos/pydata/xarray/issues/2710 485523566 MDEyOklzc3VlQ29tbWVudDQ4NTUyMzU2Ng== 19350183 2019-04-22T19:29:56Z 2019-04-22T19:29:56Z NONE

Unfortunately this most recent change has broken my workflow. I was using expand_dims to add a named dimension back onto a DataArray, when the dimension had been previously removed with the sel method. I realize this may not be the best way of doing things, but I wanted to point out that there is a loss of functionality here.

python import xarray as xr da = xr.DataArray([0,1,2], dims=['dim1'], coords={'dim1':['a','b','c']}) print(da.dims) # returns ('dim1',) da = da.sel({'dim1':'a'}) print(da.dims) # returns () da = da.expand_dims(da.coords) # fails in 0.12.1 print(da.dims) # returns ('dim1',) in 0.12.0

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