home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 757504237

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/4738#issuecomment-757504237 https://api.github.com/repos/pydata/xarray/issues/4738 757504237 MDEyOklzc3VlQ29tbWVudDc1NzUwNDIzNw== 13301940 2021-01-10T16:34:20Z 2021-01-10T16:34:20Z MEMBER

@andersy005 if you can rely on dask always being present, dask.base.tokenize(xarray_object) will do what you want.

👍🏽 dask.base.tokenize() achieves what I need for my use case.

I asked because this isn't an operation I've used directly on pandas objects in the past. I'm not opposed, but my suggestion would be to write a separate utility function, e.g., in xarray.util (similar to what is in pandas) rather than making it method on xarray objects themselves.

Due to the simplicity of dask.base.tokenize(), I am now wondering whether it's even worth having a utility function in xarray.util for computing a deterministic token (~hash) for an xarray object? I'm happy to work on this if there's interest from other folks, otherwise I will close this issue.

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