home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 398580421

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/2237#issuecomment-398580421 https://api.github.com/repos/pydata/xarray/issues/2237 398580421 MDEyOklzc3VlQ29tbWVudDM5ODU4MDQyMQ== 1217238 2018-06-19T23:49:16Z 2018-06-19T23:50:12Z MEMBER

Another option would be to rewrite how xarray does groupby/transform operations to make it more dask friendly. Currently it looks roughly like: python def groupby_transform(array, list_of_group_indices, func): # create a list of sub-arrays for each group subarrays = [array[indices] for indices in list_of_group_indices] # apply the function applied = [func(x) for x for x in subarrays] # concatenate applied arrays together concatenated = np.concatenate(applied) # restore original order reordered = concatenated[indices_to_restore_orig_order] return reordered

For example, we could reverse the order of the last two steps.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  333312849
Powered by Datasette · Queries took 0.898ms · About: xarray-datasette