home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 326352018

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
326352018 MDU6SXNzdWUzMjYzNTIwMTg= 2184 Alighment is not working in Dataset.__setitem__ and Dataset.update 6815844 closed 0     1 2018-05-25T01:38:25Z 2018-05-26T09:32:50Z 2018-05-26T09:32:50Z MEMBER      

Code Sample, a copy-pastable example if possible

from #2180 , comment

python a = Dataset({ 'x': [10, 20], 'd1': ('x', [100, 200]), 'd2': ('x', [300, 400]) }) b = Dataset({ 'x': [15], 'd1': ('x', [500]), }) a.update(b) python Dataset({ 'x': [10, 20, 15], 'd1': ('x', [nan, nan, 500]), 'd2': ('x', [300, 400, nan]) })

In the above, with anything but an outer join you're destroying d2 - which doesn't even exist in the rhs dataset! A sane, desirable outcome should be

Problem description

Alignment should work

Expected Output

python Dataset({ 'x': [10, 20, 15], 'd1': ('x', [100, 200, 500]), 'd2': ('x', [300, 400, nan]) })

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

Links from other tables

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