Np Any/All Transformation Bug
State: closed

- [X] closes #20653
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry

I believe this can be added to the whitelist of Cython functions as a result of #19722. I did similar changes with other agg funcs and will review separately to see if we should be adding more to this dict

Labels:
name: Bug
name: Groupby
name: Missing-data
description: np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20655?src=pr&el=h1) Report
> Merging [#20655](https://codecov.io/gh/pandas-dev/pandas/pull/20655?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/fa24af91a156587e7f8d1aab27a45644b59c7e49?src=pr&el=desc) will **increase** coverage by `0.02%`.
> The diff coverage is `n/a`.

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

```diff
@@            Coverage Diff             @@
##           master   #20655      +/-   ##
==========================================
+ Coverage   91.81%   91.83%   +0.02%     
==========================================
  Files         153      153              
  Lines       49270    49270              
==========================================
+ Hits        45238    45248      +10     
+ Misses       4032     4022      -10
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.22% <ø> (+0.02%)` | :arrow_up: |
| #single | `41.9% <ø> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20655?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/base.py](https://codecov.io/gh/pandas-dev/pandas/pull/20655/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvYmFzZS5weQ==) | `96.79% <ø> (ø)` | :arrow_up: |
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20655/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `84.38% <0%> (-0.21%)` | :arrow_down: |
| [pandas/plotting/\_converter.py](https://codecov.io/gh/pandas-dev/pandas/pull/20655/diff?src=pr&el=tree#diff-cGFuZGFzL3Bsb3R0aW5nL19jb252ZXJ0ZXIucHk=) | `66.81% <0%> (+1.73%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20655?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/20655?src=pr&el=footer). Last update [fa24af9...bb845fa](https://codecov.io/gh/pandas-dev/pandas/pull/20655?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

can you add a comprehensive test for all ``np.*`` functions in ``.transform``? similar to https://github.com/pandas-dev/pandas/pull/19670/files (add a fixture to ``pandas/conftest.py``)

ok in next PR (unless straightforward here). lmk.


Sure happy to do that. Need to think through the best way to test the return of each function but seems reasonable. 

Would prefer to do in separate PR as the scope of that probably departs a little too far from this fix
thanks @WillAyd