home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 604537050

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/3791#issuecomment-604537050 https://api.github.com/repos/pydata/xarray/issues/3791 604537050 MDEyOklzc3VlQ29tbWVudDYwNDUzNzA1MA== 14808389 2020-03-26T16:39:38Z 2020-03-26T16:39:38Z MEMBER

The only way I could come up with is: python In [2]: a = xr.DataArray( ...: name="sample_id", ...: data=[1, 2, 3], ...: dims="population_name", ...: coords={"population_name": ["AFR", "EUR", "EUR"]}, ...: ) ...: b = xr.DataArray( ...: name="population_size", ...: data=[10, 100], ...: dims="population_name", ...: coords={"population_name": ["AFR", "EUR"]}, ...: ) ...: a.to_dataset().assign({b.name: b.sel(population_name=a.population_name)}) Out[2]: <xarray.Dataset> Dimensions: (population_name: 3) Coordinates: * population_name (population_name) <U3 'AFR' 'EUR' 'EUR' Data variables: sample_id (population_name) int64 1 2 3 population_size (population_name) int64 10 100 100 which is a manual join?

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