home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 346037822

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/1240#issuecomment-346037822 https://api.github.com/repos/pydata/xarray/issues/1240 346037822 MDEyOklzc3VlQ29tbWVudDM0NjAzNzgyMg== 13190237 2017-11-21T14:11:36Z 2017-11-21T14:11:36Z CONTRIBUTOR

Hi, this is still the case for version 0.10.0. arr = xr.DataArray(np.random.rand(10, 3), ...: [('time', pd.date_range('2000-01-01', periods=10)), ...: ('space', ['IA', 'IL', 'IN'])]) ...: arr.loc[arr.time[2]:arr.time[5]] fails, but doing the same thing on a pandas dataframe works just fine: dfr = arr.to_dataframe(name='dfr') dfr.loc[arr.time[2]:arr.time[5]] I'd really appreciate see this working on a DataArray.

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