home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 832871434

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/pull/5045#issuecomment-832871434 https://api.github.com/repos/pydata/xarray/issues/5045 832871434 MDEyOklzc3VlQ29tbWVudDgzMjg3MTQzNA== 1217238 2021-05-05T17:23:27Z 2021-05-05T17:23:27Z MEMBER

I'm not sure how to use this, because np.can_cast with unsafe casting mostly returns True, e.g. np.can_cast(str, float, casting="unsafe")==True. The error that is implemented in the tests would not be caught then.

Oh, good point, thanks for checking.

But I could explicitly try to cast the new values to the datatype of the original values with .astype. Would that be an option?

Yes, I like this idea!

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