issue_comments: 456239824
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/2695#issuecomment-456239824 | https://api.github.com/repos/pydata/xarray/issues/2695 | 456239824 | MDEyOklzc3VlQ29tbWVudDQ1NjIzOTgyNA== | 43613877 | 2019-01-22T01:25:55Z | 2019-01-22T01:25:55Z | CONTRIBUTOR | Thanks for the clarification! I think the My above mentioned changes to the code, despite mixing up ```python import xarray as xr import pandas as pd import datetime as dt dates=[dt.datetime(2018,1,1), dt.datetime(2018,1,2)] data=[10,20] df=pd.DataFrame(data,index=dates) xdf = xr.Dataset.from_dataframe(df) xdf.resample({'index':'1H'}).nearest(tolerance=dt.timedelta(hours=2)) ``` would lead to
Would that be helpful to include and write a pull request? |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
401392318 |