home / github / pull_requests

Menu
  • Search all tables
  • GraphQL API

pull_requests: 544394771

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
544394771 MDExOlB1bGxSZXF1ZXN0NTQ0Mzk0Nzcx 4723 closed 0 scatter plot by order of the first appearance of hue 14808389 As suggested by @ahuang11, this uses `pandas.unique(x.flatten())` instead of `numpy.unique(x)` to preserve the order (`numpy.unique` sorts its output). Apparently we could also use the `return_index` option of `numpy.unique` to reconstruct the order, but that seems involve sorting the indices: ```python def _unique(array): array = array.flatten() _, indices = np.unique(array, return_index=True) return array[np.sort(indices)] ``` I'm not sure how to add tests for this change. - [x] Closes #4641 - [ ] Tests added - [x] Passes `isort . && black . && mypy . && flake8` - [ ] User visible changes (including notable bug fixes) are documented in `whats-new.rst` 2020-12-22T22:00:52Z 2021-01-13T23:02:42Z 2021-01-13T23:02:33Z 2021-01-13T23:02:33Z 747fe26881af073e23b9b09796664f2dd2d4821b     0 f60db7484bbfe8de015ce352c7617c076e3d5ecc 1ce8938f1d783971b56d22a5a077d8cbddc836a0 MEMBER   13221727 https://github.com/pydata/xarray/pull/4723  

Links from other tables

  • 1 row from pull_requests_id in labels_pull_requests
Powered by Datasette · Queries took 159.911ms