Backport PR #25629: Suppress incorrect warning in nargsort for timezo…
State: closed

…ne-aware DatetimeIndex

manual backport of https://github.com/pandas-dev/pandas/pull/25629

Labels:
name: Timezones
description: Timezone data dtype

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25657?src=pr&el=h1) Report
> Merging [#25657](https://codecov.io/gh/pandas-dev/pandas/pull/25657?src=pr&el=desc) into [0.24.x](https://codecov.io/gh/pandas-dev/pandas/commit/caca8bc626d984ee4e60c62687654d0c630cd059?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `100%`.

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

```diff
@@            Coverage Diff             @@
##           0.24.x   #25657      +/-   ##
==========================================
+ Coverage   92.39%   92.39%   +<.01%     
==========================================
  Files         166      166              
  Lines       52421    52424       +3     
==========================================
+ Hits        48433    48436       +3     
  Misses       3988     3988
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.83% <100%> (ø)` | :arrow_up: |
| #single | `42.91% <100%> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25657?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/sorting.py](https://codecov.io/gh/pandas-dev/pandas/pull/25657/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvc29ydGluZy5weQ==) | `98.29% <100%> (+0.02%)` | :arrow_up: |

------

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

# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25657?src=pr&el=h1) Report
> Merging [#25657](https://codecov.io/gh/pandas-dev/pandas/pull/25657?src=pr&el=desc) into [0.24.x](https://codecov.io/gh/pandas-dev/pandas/commit/caca8bc626d984ee4e60c62687654d0c630cd059?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `100%`.

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

```diff
@@            Coverage Diff             @@
##           0.24.x   #25657      +/-   ##
==========================================
+ Coverage   92.39%   92.39%   +<.01%     
==========================================
  Files         166      166              
  Lines       52421    52424       +3     
==========================================
+ Hits        48433    48436       +3     
  Misses       3988     3988
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.83% <100%> (ø)` | :arrow_up: |
| #single | `42.91% <100%> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25657?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/sorting.py](https://codecov.io/gh/pandas-dev/pandas/pull/25657/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvc29ydGluZy5weQ==) | `98.29% <100%> (+0.02%)` | :arrow_up: |

------

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