issues: 481838855
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
481838855 | MDU6SXNzdWU0ODE4Mzg4NTU= | 3224 | Add "on"-parameter to "merge" method | 1200058 | closed | 0 | 2 | 2019-08-17T02:44:46Z | 2022-04-18T15:57:09Z | 2022-04-18T15:57:09Z | NONE | I'd like to propose a change to the merge method. Often, I meet cases where I'd like to merge subsets of the same dataset. However, this currently requires renaming of all dimensions, changing indices and merging them by hand. As an example, please consider the following dataset:
Now, I'd like to plot all values in To simplify this task, I'd like to have the following abstraction: ```python3 select tissuestissue_1 = ds.sel(observations = (ds.subtissue == "Whole_Blood")) tissue_2 = ds.sel(observations = (ds.subtissue == "Adipose_Subcutaneous")) inner join by individualmerged = tissue_1.merge(tissue_2, on="individual", newdim="merge_dim", join="inner") print(merged)
To summarize, I'd propose the following changes:
- Add parameter In case if the What do you think about this addition? |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3224/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |