home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 153980946

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/645#issuecomment-153980946 https://api.github.com/repos/pydata/xarray/issues/645 153980946 MDEyOklzc3VlQ29tbWVudDE1Mzk4MDk0Ng== 1217238 2015-11-05T07:55:27Z 2015-11-05T07:55:27Z MEMBER

I have not tried using xray with pandas's PeriodIndex before. On the whole, I'm not a really big fan of PeriodIndex -- IntervalIndex (https://github.com/pydata/pandas/pull/8707) will be a more general solution that allows for arbitrary interval bounds.

The broken thing about PeriodIndex is that it lies and claims to have int64 dtype even though it consists of Period scalars:

In [3]: pd.period_range('2000', freq='Y', periods=3).dtype Out[3]: dtype('int64')

I suppose pandas is unlikely to fix this in the immediate (though I would argue that it really should). In the meantime, do you have any interest in working on a fix for this? I suspect this would be relatively straightforward -- you'll simply need a work around or two to explicitly handle PeriodIndex.

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