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/1509#issuecomment-323105006,https://api.github.com/repos/pydata/xarray/issues/1509,323105006,MDEyOklzc3VlQ29tbWVudDMyMzEwNTAwNg==,4992424,2017-08-17T15:20:22Z,2017-08-17T15:20:22Z,NONE,@betaplane a re-factoring of the `resample` API to match pandas' is currently being wrapped up and slated for 0.10.0; see #1272,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,250751931 https://github.com/pydata/xarray/issues/1509#issuecomment-322926397,https://api.github.com/repos/pydata/xarray/issues/1509,322926397,MDEyOklzc3VlQ29tbWVudDMyMjkyNjM5Nw==,5564291,2017-08-16T23:23:38Z,2017-08-16T23:23:38Z,NONE,"Ok, thanks a lot. Just as a comment though, pandas does it differently, and the xarray documentation states that ""resample uses essentially the same api as resample in pandas."" ``` In [1]: import numpy as np In [2]: import pandas as pd In [3]: x = pd.DataFrame([1, np.nan], pd.date_range('2017-08-01', '2017-08-02')) In [4]: x.resample('D').mean() Out[4]: 0 2017-08-01 1.0 2017-08-02 NaN In [5]: x.resample('D').sum() Out[5]: 0 2017-08-01 1.0 2017-08-02 NaN ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,250751931 https://github.com/pydata/xarray/issues/1509#issuecomment-322894661,https://api.github.com/repos/pydata/xarray/issues/1509,322894661,MDEyOklzc3VlQ29tbWVudDMyMjg5NDY2MQ==,2443309,2017-08-16T20:48:16Z,2017-08-16T20:48:16Z,MEMBER,"1) I can reproduce this behavior on the current master branch 2) this is consistent with numpy's `nansum`/`nanmean` which we use here ```python In [1]: import numpy as np In [2]: np.sum([np.nan]) Out[2]: nan In [3]: np.mean([np.nan]) Out[3]: nan In [4]: np.nansum([np.nan]) Out[4]: 0.0 In [5]: np.nanmean([np.nan]) /glade/u/home/jhamman/anaconda/envs/storylines/bin/ipython:1: RuntimeWarning: Mean of empty slice #!/glade/u/home/jhamman/anaconda/envs/storylines/bin/python Out[5]: nan ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,250751931