Unable to pass additional arguments to resample().apply()
State: closed

- [x] closes #14615
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry

There is flake8 warning ^ but it is not related with my changes.

Labels:
name: Bug
name: Groupby
name: Resample
description: resample method

Comments:
I considered this [comment](https://github.com/pandas-dev/pandas/pull/14635/files#r95378731) at first before started the implementation. The reason why I didn't do like that is a compatibility with [Resampler.apply](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.core.resample.Resampler.apply.html) docs.
Docs says us that positional args will be pass into applied function.
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/22261?src=pr&el=h1) Report
> Merging [#22261](https://codecov.io/gh/pandas-dev/pandas/pull/22261?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/4f11d1a9a9b02a37dbe109d8413cc75d73b92853?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `100%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/22261/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/22261?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #22261      +/-   ##
==========================================
- Coverage   92.05%   92.05%   -0.01%     
==========================================
  Files         169      169              
  Lines       50733    50735       +2     
==========================================
+ Hits        46702    46703       +1     
- Misses       4031     4032       +1
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.46% <100%> (-0.01%)` | :arrow_down: |
| #single | `42.24% <16.66%> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/22261?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/resample.py](https://codecov.io/gh/pandas-dev/pandas/pull/22261/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvcmVzYW1wbGUucHk=) | `96.09% <100%> (+0.01%)` | :arrow_up: |
| [pandas/util/\_depr\_module.py](https://codecov.io/gh/pandas-dev/pandas/pull/22261/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvX2RlcHJfbW9kdWxlLnB5) | `65.11% <0%> (-2.33%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/22261?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/22261?src=pr&el=footer). Last update [4f11d1a...547d2a5](https://codecov.io/gh/pandas-dev/pandas/pull/22261?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

@jreback 
@TomAugspurger 
@gfyoung 
Ping @jreback @TomAugspurger : Could you have a look?
Hello @discort! Thanks for updating the PR.





Cheers ! There are no PEP8 issues in this Pull Request. :beers: 

##### Comment last updated on August 20, 2018 at 18:45 Hours UTC
@TomAugspurger 
Fixed within 66550b136d38398f3dead85b8d1c50adbdae3644
@jreback 
Thanks!