home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 458718342

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-458718342 https://api.github.com/repos/pydata/xarray/issues/2710 458718342 MDEyOklzc3VlQ29tbWVudDQ1ODcxODM0Mg== 2448579 2019-01-29T21:42:08Z 2019-01-29T21:42:08Z MEMBER

Well then I think they should be different.

Currently, da.expand_dims('a') gives <xarray.DataArray (a: 1, b: 5, c: 3)> array([[[1., 1., 1.], [1., 1., 1.], [1., 1., 1.], [1., 1., 1.], [1., 1., 1.]]]) Coordinates: * b (b) int64 0 1 2 3 4 * c (c) int64 0 1 2 Dimensions without coordinates: a

da.expand_dims(a=3) should give <xarray.DataArray (a: 3, b: 5, c: 3)> ... Coordinates: * b (b) int64 0 1 2 3 4 * c (c) int64 0 1 2 Dimensions without coordinates: a

da.expand_dims(a=[9, 10, 11]) should give <xarray.DataArray (a: 3, b: 5, c: 3)> ... Coordinates: * a (a) int64 9 10 11 * b (b) int64 0 1 2 3 4 * c (c) int64 0 1 2 i.e. in this last case, the user has specified co-ordinate labels and so the returned DataArray has a new co-ordinate a.

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