home / github / pull_requests

Menu
  • GraphQL API
  • Search all tables

pull_requests: 73465410

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
73465410 MDExOlB1bGxSZXF1ZXN0NzM0NjU0MTA= 879 closed 0 Multi-index repr 4160723 Another item of #719. An example: ``` python >>> index = pd.MultiIndex.from_product((list('ab'), range(10))) >>> index.names= ('a_long_level_name', 'level_1') >>> data = xr.DataArray(range(20), [('x', index)]) >>> data <xarray.DataArray (x: 20)> array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]) Coordinates: * x (x) object MultiIndex - a_long_level_name object 'a' 'a' 'a' 'a' 'a' 'a' 'a' 'a' 'a' 'a' 'b' ... - level_1 int64 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 ``` To be consistent with the displayed coordinates and/or data variables, it displays the actual used level values. Using the `pandas.MultiIndex.get_level_values` method would be expensive for big indexes, so I re-implemented it in xarray so that we can truncate the computation to the first _x_ values, which is very cheap. It still needs testing. Maybe it would be nice to align the level values. 2016-06-11T10:58:13Z 2016-09-02T09:34:49Z 2016-08-31T21:40:59Z         0 4e7793a8d4fb0d5062ad8aab5578aaf3fec43577 450ac8fb16bec935a18ff3155673dff82208d3fe MEMBER   13221727 https://github.com/pydata/xarray/pull/879  

Links from other tables

  • 0 rows from pull_requests_id in labels_pull_requests
Powered by Datasette ยท Queries took 1.18ms