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/pull/2413#issuecomment-421853996,https://api.github.com/repos/pydata/xarray/issues/2413,421853996,MDEyOklzc3VlQ29tbWVudDQyMTg1Mzk5Ng==,6628425,2018-09-16T23:40:23Z,2018-09-16T23:40:23Z,MEMBER,"Thanks @maaleske -- following the style of your groupby tests, you could do something like this, e.g. for the DataArray case:
```python
def test_da_resample_func_args():
def func(arg1, arg2, arg3=0.):
return arg1.mean('time') + arg2 + arg3
times = pd.date_range('2000', periods=3, freq='D')
da = xr.DataArray([1., 1., 1.], coords=[times], dims=['time'])
expected = xr.DataArray([3., 3., 3.], coords=[times], dims=['time'])
actual = da.resample(time='D').apply(func, args=(1,), arg3=1)
assert_identical(actual, expected)
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,359449421