Backport PR #21921 on branch 0.23.x
Backport PR #21921: BUG:Clip with a list-like threshold with a nan is broken (GH19992)
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/21967?src=pr&el=h1) Report
> Merging [#21967](https://codecov.io/gh/pandas-dev/pandas/pull/21967?src=pr&el=desc) into [0.23.x](https://codecov.io/gh/pandas-dev/pandas/commit/b7a2cd4a4c6ea235005aecbc2911034c6064afd3?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `100%`.

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

```diff
@@           Coverage Diff           @@
##           0.23.x   #21967   +/-   ##
=======================================
  Coverage   91.83%   91.83%           
=======================================
  Files         153      153           
  Lines       49592    49592           
=======================================
  Hits        45541    45541           
  Misses       4051     4051
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.23% <100%> (ø)` | :arrow_up: |
| #single | `41.84% <0%> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/21967?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/generic.py](https://codecov.io/gh/pandas-dev/pandas/pull/21967/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ2VuZXJpYy5weQ==) | `96.21% <100%> (ø)` | :arrow_up: |

------

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