home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 557322577

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/2461#issuecomment-557322577 https://api.github.com/repos/pydata/xarray/issues/2461 557322577 MDEyOklzc3VlQ29tbWVudDU1NzMyMjU3Nw== 14808389 2019-11-21T23:42:28Z 2019-11-21T23:42:28Z MEMBER

to get your example to work, use this: python data=pd.DataFrame({'x': [0, 1, 2], 'y': ['a', 'b', 'c'],'z': ['a', 'b', 'c']}) xr.DataArray(data.x, coords={'y': data.y, 'x':data.z}, dims="y") to get both as dimensions, use python df = pd.DataFrame({'x': [0, 1, 2], 'y': ['a', 'b', 'c'],'z': ['a', 'b', 'c']}) ds = df.set_index(["y", "z"]).to_xarray()

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