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 1949782787,PR_kwDOAMm_X85dJLvY,8332,Add invert option to DataArray/Dataset.stack(),92899389,open,0,,,9,2023-10-18T13:38:38Z,2024-04-29T16:29:40Z,,FIRST_TIME_CONTRIBUTOR,,0,pydata/xarray/pulls/8332,"This brings in the option to stack all dimensions *except* for one or more dimensions listed. I find this very useful for quickly iterating over all the combinations of dimensions except for one (i.e. you have a number of input parameters that are parameterized and one time dimension, and you want to calculate some time response for all the combinations of these input parameters and store them in the time-row corresponding to the appropriate combination of inputs). I played around with implementing `to_stacked_array()` for `DataArray`, but this made less sense in the end since that method was really designed for Datasets. - [x] Addresses #8278 - [ ] Tests added (added one for DataArray, just now realizing I should have one for Dataset) - [ ] User visible changes (including notable bug fixes) are documented in `whats-new.rst` - [ ] New functions/methods are listed in `api.rst` ","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/8332/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,,13221727,pull