home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 615482314

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/3938#issuecomment-615482314 https://api.github.com/repos/pydata/xarray/issues/3938 615482314 MDEyOklzc3VlQ29tbWVudDYxNTQ4MjMxNA== 10194086 2020-04-17T21:58:00Z 2020-04-17T21:58:00Z MEMBER

This should of course not lead to confusion, however, there are operations that work with levels, e.g. da["level"] returns a mutltiindex level as virtual coordinate* and da.sel(level=5) works.

In my case I had Coordinates that looked something like this Coordinates: * time (time) datetime64[ns] ... * ens (ens) MultiIndex - model (ens) "CESM", "MIROC", ... - number (ens) 0, 1, ... and I wanted to do da.plot(x="time", y="number"), but this does currently not work. What I could do is ds.reset_index("ens") and use the resulting "non-dimension coordinate" for plotting.

(Both "non-dimension coordinate" and "MultiIndex" have some issues, so depending on what I want to do I need one ore the other.)

*which is why I only needed to change the valitity check for x and y and not the plotting itself

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