home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 665435320

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/4283#issuecomment-665435320 https://api.github.com/repos/pydata/xarray/issues/4283 665435320 MDEyOklzc3VlQ29tbWVudDY2NTQzNTMyMA== 221526 2020-07-29T05:13:27Z 2020-07-29T05:13:27Z CONTRIBUTOR

Looks like (to my eye anyway) it stems from: ```python import numpy as np import pandas as pd t = np.array(['2017-09-05T12:00:00.000000000', '2017-09-05T15:00:00.000000000'], dtype='datetime64[ns]') index = pd.DatetimeIndex(t)

index.get_loc(t[0].item()) # Fails with KeyError index.get_loc(t[0]) # Works `` Fails on 1.1.0. What I have no idea is whether the.item()` call is supposed to work.

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