TST: Verify that positional shifting works with duplicate columns (#9…
State: closed

Add a test to confirm that closes #9092 is solved (seems to work >= 0.18.0.)  

Labels:
name: Testing
description: pandas testing functions or related to the test suite
name: Reshaping
description: Concat, Merge/Join, Stack/Unstack, Explode

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

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

```diff
@@            Coverage Diff             @@
##           master   #16810      +/-   ##
==========================================
- Coverage   90.94%   90.94%   -0.01%     
==========================================
  Files         161      161              
  Lines       49272    49267       -5     
==========================================
- Hits        44810    44804       -6     
- Misses       4462     4463       +1
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `88.71% <ø> (-0.01%)` | :arrow_down: |
| #single | `40.17% <ø> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/16810?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/ops.py](https://codecov.io/gh/pandas-dev/pandas/pull/16810?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvb3BzLnB5) | `91.69% <0%> (-0.34%)` | :arrow_down: |
| [pandas/core/generic.py](https://codecov.io/gh/pandas-dev/pandas/pull/16810?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ2VuZXJpYy5weQ==) | `92.27% <0%> (-0.03%)` | :arrow_down: |
| [pandas/core/indexes/datetimes.py](https://codecov.io/gh/pandas-dev/pandas/pull/16810?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9kYXRldGltZXMucHk=) | `95.33% <0%> (+0.09%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/16810?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/16810?src=pr&el=footer). Last update [e5fd3e0...95667a1](https://codecov.io/gh/pandas-dev/pandas/pull/16810?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/16810?src=pr&el=h1) Report
> Merging [#16810](https://codecov.io/gh/pandas-dev/pandas/pull/16810?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/e5fd3e023c52c6756fa83604c5909cc102808fdc?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `n/a`.

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

```diff
@@            Coverage Diff             @@
##           master   #16810      +/-   ##
==========================================
+ Coverage   90.94%   90.94%   +<.01%     
==========================================
  Files         161      161              
  Lines       49272    49272              
==========================================
+ Hits        44810    44811       +1     
+ Misses       4462     4461       -1
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `88.71% <ø> (ø)` | :arrow_up: |
| #single | `40.17% <ø> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/16810?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/indexes/datetimes.py](https://codecov.io/gh/pandas-dev/pandas/pull/16810?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9kYXRldGltZXMucHk=) | `95.33% <0%> (+0.09%)` | :arrow_up: |

------

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

thanks!