home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1026656699

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/6226#issuecomment-1026656699 https://api.github.com/repos/pydata/xarray/issues/6226 1026656699 IC_kwDOAMm_X849MYm7 10580038 2022-02-01T09:52:39Z 2022-02-01T09:52:39Z CONTRIBUTOR

I just ran into the very same issue. Are you sure that this is a problem with pandas? I've had a look into the pandas changes between 1.3.X and 1.4.X. Apparently the _new_Index method, which gets involved when serialising the index object, has been changed:

elif "dtype" not in d and "data" in d: # Prevent Index.__new__ from conducting inference; # "data" key not in RangeIndex d["dtype"] = d["data"].dtype return cls.__new__(cls, **d)

the problem is, that __new__ doesn't except a dtype argument. I've tried adding a dtype argument and it works. So I guess since this class inherits from pd.Index it needs to be updated?

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