home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 168138939

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/692#issuecomment-168138939 https://api.github.com/repos/pydata/xarray/issues/692 168138939 MDEyOklzc3VlQ29tbWVudDE2ODEzODkzOQ== 5635139 2015-12-31T07:20:11Z 2016-01-01T22:12:08Z MEMBER

Also peculiar - setting the coord to the original coord (saved above, but not shown here) causes the ds.date.dtype to report 'O', although not to display that in its repr, nor to cascade that for a DataArray extracted from it.

``` python In [80]:

ds.date = date ds, ds.date.dtype, ds['number 1'].date.dtype Out[80]: (<xray.Dataset> Dimensions: (date: 10) Coordinates: * date (date) int64 10957 10958 10959 10960 10961 10962 10963 10964 ... Data variables: number 1 (date) float64 0.1225 0.7202 0.5921 0.3005 0.8746 0.4186 ... number 2 (date) float64 0.1225 0.7202 0.5921 0.3005 0.8746 0.4186 ... number 3 (date) float64 0.1225 0.7202 0.5921 0.3005 0.8746 0.4186 ... number 4 (date) float64 0.1225 0.7202 0.5921 0.3005 0.8746 nan nan nan ..., dtype('O'), dtype('int64')) ```

Currently my workaround is ds=ds.assign_coords(**dict(date=date.to_index()))

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