home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 279509836

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/1262#issuecomment-279509836 https://api.github.com/repos/pydata/xarray/issues/1262 279509836 MDEyOklzc3VlQ29tbWVudDI3OTUwOTgzNg== 1217238 2017-02-13T20:18:42Z 2017-02-13T20:18:42Z MEMBER

One major API design challenge to solve with such a package (unresolved in NumPy) is how to handle dtype-specific methods/properties, e.g., year, month and day properties for a custom datetime dtype, or a .keys() methods for a structured dtype (https://github.com/numpy/numpy/pull/8615).

Fitting these into a generic NDArray type is not very natural. So perhaps the solution is to use subclasses (fixed for each dtype) with some very strict design constraints (e.g., only add new methods/properties, don't override functionality). The contract would still be that the dtype defines all valid extension points for overriding functionality.

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