home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1340939982

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/7363#issuecomment-1340939982 https://api.github.com/repos/pydata/xarray/issues/7363 1340939982 IC_kwDOAMm_X85P7R7O 8382834 2022-12-07T13:07:10Z 2022-12-07T13:07:10Z CONTRIBUTOR

Following the pointer by @keewis, I just did an:

extended_observations = previous_observations.pad(pad_width={"time": (0, needed_padding)}, mode="constant", constant_values=-999)

This runs nearly instantaneously and does exactly what I need. Many thanks to all for your help, and sorry for missing that there was the pad function. I close for now (the only question, is why the call to reindex is costly on my machine; I wonder if there may be some old version of some underlying software at stake).

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