home / github / pull_requests

Menu
  • GraphQL API
  • Search all tables

pull_requests: 1486052929

This data as json

id node_id number state locked title user body created_at updated_at closed_at merged_at merge_commit_sha assignee milestone draft head base author_association auto_merge repo url merged_by
1486052929 PR_kwDOAMm_X85Yk15B 8102 closed 0 Add `Coordinates.assign()` method 4160723 <!-- Feel free to remove check-list items aren't relevant to your change --> - [x] Tests added - [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst` - [x] New functions/methods are listed in `api.rst` This is consistent with the Dataset and DataArray `assign` methods (now that `Coordinates` is also exposed as public API). This allows writing: ```python midx = pd.MultiIndex.from_arrays([["a", "a", "b", "b"], [0, 1, 0, 1]]) midx_coords = xr.Coordinates.from_pandas_multiindex(midx, "x") ds = xr.Dataset(coords=midx_coords.assign(y=[1, 2])) ``` which is quite common (at least in the tests) and a bit nicer than ```python ds = xr.Dataset(coords=midx_coords.merge({"y": [1, 2]}).coords) ``` 2023-08-23T09:15:51Z 2023-09-01T13:28:16Z 2023-09-01T13:28:16Z 2023-09-01T13:28:16Z 71177d481eb0c3547cb850a4b3e866af6d4fded7     0 6f1dfed9dac9bcecb6b9b8bd1abd20d5cb388f68 1043a9e13574e859ec08d19425341b2e359d2802 MEMBER   13221727 https://github.com/pydata/xarray/pull/8102  

Links from other tables

  • 1 row from pull_requests_id in labels_pull_requests
Powered by Datasette ยท Queries took 0.878ms