BrandonFors/pandas-github-issues huggingface dataset:
BUG: excel index label can be an array
State: closed

Fixes "ValueError: The truth value of an array with more than one element is ambiguous." where self.index_label could be a list, tuple np.ndarray, or Index type

closes #20622 

Labels:
name: IO Excel
description: read_excel, to_excel

Comments:
Hello @saxaholic! Thanks for updating the PR.



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

##### Comment last updated on April 06, 2018 at 15:18 Hours UTC
Could you add tests (that fail without the change) and a release note? http://pandas.pydata.org/pandas-docs/stable/contributing.html
I will try if I have time.
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20623?src=pr&el=h1) Report
> Merging [#20623](https://codecov.io/gh/pandas-dev/pandas/pull/20623?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/6d610a4d9393c0d0335267dc3252ccabb9e51e43?src=pr&el=desc) will **increase** coverage by `0.02%`.
> The diff coverage is `100%`.

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

```diff
@@            Coverage Diff             @@
##           master   #20623      +/-   ##
==========================================
+ Coverage   91.82%   91.84%   +0.02%     
==========================================
  Files         153      153              
  Lines       49256    49256              
==========================================
+ Hits        45227    45241      +14     
+ Misses       4029     4015      -14
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20623?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/formats/excel.py](https://codecov.io/gh/pandas-dev/pandas/pull/20623/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2Zvcm1hdHMvZXhjZWwucHk=) | `97.36% <100%> (ø)` | :arrow_up: |
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20623/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `84.73% <0%> (+0.2%)` | :arrow_up: |
| [pandas/plotting/\_converter.py](https://codecov.io/gh/pandas-dev/pandas/pull/20623/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/20623?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/20623?src=pr&el=footer). Last update [6d610a4...b5752b7](https://codecov.io/gh/pandas-dev/pandas/pull/20623?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

closing as stale
DOC: update the str_replace docstring
State: closed

Remove claim in `str_replace` docstring of equivalence to base Python `str.replace` -- the former does regex parsing while the latter does not.

Labels:
name: Docs

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20618?src=pr&el=h1) Report
> Merging [#20618](https://codecov.io/gh/pandas-dev/pandas/pull/20618?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/6d610a4d9393c0d0335267dc3252ccabb9e51e43?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/20618/graphs/tree.svg?width=650&height=150&src=pr&token=eZ4WkYLtcO)](https://codecov.io/gh/pandas-dev/pandas/pull/20618?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #20618      +/-   ##
==========================================
+ Coverage   91.82%   91.84%   +0.02%     
==========================================
  Files         153      153              
  Lines       49256    49256              
==========================================
+ Hits        45227    45239      +12     
+ Misses       4029     4017      -12
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20618?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/strings.py](https://codecov.io/gh/pandas-dev/pandas/pull/20618/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvc3RyaW5ncy5weQ==) | `98.32% <ø> (ø)` | :arrow_up: |
| [pandas/plotting/\_converter.py](https://codecov.io/gh/pandas-dev/pandas/pull/20618/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/20618?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/20618?src=pr&el=footer). Last update [6d610a4...c8102f4](https://codecov.io/gh/pandas-dev/pandas/pull/20618?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

Aren't they equivalent if `regex=False` ?
If nothing else, the relevance of `regex=False` should be explicit. E.g.

"""
Replace occurrences of pattern/regex in the Series/Index with some other string. Equivalent to :func:`re.sub` when regex=True, or :meth:`str.replace` when `regex=False`.
"""
@gsganden feel free to open a new PR with your last suggestion (being explicit about when it's equivalent to `str.replace` and when to `re.sub`). Closing this one, as I think it's helpful for users to know it's equivalent to `str.replace`.
BUG: Avoid splitting string with list() (#20592)
State: closed

 Solves #20592 and I doubt that there are any cases when a key string should be split by `list()`

Labels:
name: Indexing
description: Related to indexing on series/frames, not to indexes themselves

Comments:
This needs tests
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20615?src=pr&el=h1) Report
> Merging [#20615](https://codecov.io/gh/pandas-dev/pandas/pull/20615?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/6d610a4d9393c0d0335267dc3252ccabb9e51e43?src=pr&el=desc) will **increase** coverage by `0.02%`.
> The diff coverage is `100%`.

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

```diff
@@            Coverage Diff             @@
##           master   #20615      +/-   ##
==========================================
+ Coverage   91.82%   91.84%   +0.02%     
==========================================
  Files         153      153              
  Lines       49256    49258       +2     
==========================================
+ Hits        45227    45243      +16     
+ Misses       4029     4015      -14
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.23% <100%> (+0.02%)` | :arrow_up: |
| #single | `41.9% <0%> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20615?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/series.py](https://codecov.io/gh/pandas-dev/pandas/pull/20615/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvc2VyaWVzLnB5) | `93.91% <100%> (+0.01%)` | :arrow_up: |
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20615/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `84.73% <0%> (+0.2%)` | :arrow_up: |
| [pandas/plotting/\_converter.py](https://codecov.io/gh/pandas-dev/pandas/pull/20615/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/20615?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/20615?src=pr&el=footer). Last update [6d610a4...9535274](https://codecov.io/gh/pandas-dev/pandas/pull/20615?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

And a release note: http://pandas.pydata.org/pandas-docs/stable/contributing.html#documenting-your-code
closing as stale, though would certainly take a PR here
BUG/PERF: Fixed IntervalIndex.nbytes and itemsize
State: closed

Avoid materializing the ndarray of Intervals. Just get from left and right
instead.

Closes https://github.com/pandas-dev/pandas/issues/19209

Labels:
name: Interval
description: Interval data type

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20600?src=pr&el=h1) Report
> Merging [#20600](https://codecov.io/gh/pandas-dev/pandas/pull/20600?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/aa3fefc898b2f101f3cf83f90add69857926fcbe?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/20600/graphs/tree.svg?width=650&height=150&src=pr&token=eZ4WkYLtcO)](https://codecov.io/gh/pandas-dev/pandas/pull/20600?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #20600      +/-   ##
==========================================
+ Coverage   91.84%   91.84%   +<.01%     
==========================================
  Files         153      153              
  Lines       49256    49260       +4     
==========================================
+ Hits        45241    45245       +4     
  Misses       4015     4015
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20600?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/indexes/interval.py](https://codecov.io/gh/pandas-dev/pandas/pull/20600/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9pbnRlcnZhbC5weQ==) | `93.13% <100%> (+0.04%)` | :arrow_up: |

------

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

Sorry, was just using this to demo stuff for a talk on OSS I gave last night.

I think this will be solved by Interval being an ExtensionArray (should have that PR today).
Closing in favor of #20611.
BUG: HDFStore failures on timezone-aware data
State: closed

- [x] closes #20594
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry


Labels:
name: Bug
name: IO HDF5
description: read_hdf, HDFStore

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20595?src=pr&el=h1) Report
> Merging [#20595](https://codecov.io/gh/pandas-dev/pandas/pull/20595?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/73cb32e71469cf1615907544728bb9a751089de4?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/20595/graphs/tree.svg?height=150&width=650&token=eZ4WkYLtcO&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/20595?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #20595      +/-   ##
==========================================
+ Coverage   91.82%   91.82%   +<.01%     
==========================================
  Files         153      153              
  Lines       49256    49259       +3     
==========================================
+ Hits        45229    45232       +3     
  Misses       4027     4027
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.21% <82.35%> (-0.01%)` | :arrow_down: |
| #single | `41.93% <100%> (+0.02%)` | :arrow_up: |

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

------

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

can you update to last comments
can you rebase and respond to comments
closing as stale. would accept if rebased and comments addressed.
BUG: Series[EA].astype(str) works
State: closed

Closes https://github.com/pandas-dev/pandas/issues/20578

cc @jorisvandenbossche 

Labels:
name: Dtype Conversions
description: Unexpected or buggy dtype conversions
name: ExtensionArray
description: Extending pandas with custom dtypes or arrays.

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20581?src=pr&el=h1) Report
> Merging [#20581](https://codecov.io/gh/pandas-dev/pandas/pull/20581?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/4efb39f01f5880122fa38d91e12d217ef70fad9e?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/20581/graphs/tree.svg?width=650&src=pr&token=eZ4WkYLtcO&height=150)](https://codecov.io/gh/pandas-dev/pandas/pull/20581?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #20581      +/-   ##
==========================================
+ Coverage   91.82%   91.82%   +<.01%     
==========================================
  Files         152      152              
  Lines       49255    49255              
==========================================
+ Hits        45226    45228       +2     
+ Misses       4029     4027       -2
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20581?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/internals.py](https://codecov.io/gh/pandas-dev/pandas/pull/20581/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW50ZXJuYWxzLnB5) | `95.53% <100%> (ø)` | :arrow_up: |
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20581/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `84.73% <0%> (+0.2%)` | :arrow_up: |

------

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

Thanks!
BUG: Fixed Series.align(frame) with ExtensionArray
State: closed

Closes https://github.com/pandas-dev/pandas/issues/20576

cc @jorisvandenbossche 

Labels:
name: Missing-data
description: np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
name: Reshaping
description: Concat, Merge/Join, Stack/Unstack, Explode
name: ExtensionArray
description: Extending pandas with custom dtypes or arrays.

Comments:
That fixed it! Thanks
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20580?src=pr&el=h1) Report
> Merging [#20580](https://codecov.io/gh/pandas-dev/pandas/pull/20580?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/4efb39f01f5880122fa38d91e12d217ef70fad9e?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/20580/graphs/tree.svg?token=eZ4WkYLtcO&src=pr&height=150&width=650)](https://codecov.io/gh/pandas-dev/pandas/pull/20580?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #20580      +/-   ##
==========================================
+ Coverage   91.82%   91.82%   +<.01%     
==========================================
  Files         152      152              
  Lines       49255    49255              
==========================================
+ Hits        45226    45228       +2     
+ Misses       4029     4027       -2
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20580?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/dtypes/cast.py](https://codecov.io/gh/pandas-dev/pandas/pull/20580/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZHR5cGVzL2Nhc3QucHk=) | `87.85% <100%> (ø)` | :arrow_up: |
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20580/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `84.73% <0%> (+0.2%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20580?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/20580?src=pr&el=footer). Last update [4efb39f...c26c454](https://codecov.io/gh/pandas-dev/pandas/pull/20580?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
TST: remove skip for values/index length mismatch in ExtensionArray tests
State: closed

https://github.com/pandas-dev/pandas/issues/19342 is fixed in the meantime

Labels:
name: Testing
description: pandas testing functions or related to the test suite
name: ExtensionArray
description: Extending pandas with custom dtypes or arrays.

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20577?src=pr&el=h1) Report
> Merging [#20577](https://codecov.io/gh/pandas-dev/pandas/pull/20577?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/4efb39f01f5880122fa38d91e12d217ef70fad9e?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/20577/graphs/tree.svg?src=pr&token=eZ4WkYLtcO&width=650&height=150)](https://codecov.io/gh/pandas-dev/pandas/pull/20577?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #20577      +/-   ##
==========================================
+ Coverage   91.82%   91.84%   +0.02%     
==========================================
  Files         152      152              
  Lines       49255    49255              
==========================================
+ Hits        45226    45240      +14     
+ Misses       4029     4015      -14
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20577?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20577/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `84.73% <0%> (+0.2%)` | :arrow_up: |
| [pandas/plotting/\_converter.py](https://codecov.io/gh/pandas-dev/pandas/pull/20577/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/20577?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/20577?src=pr&el=footer). Last update [4efb39f...db6f6d8](https://codecov.io/gh/pandas-dev/pandas/pull/20577?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

Thanks!
BUG: .unique() on MultiIndex: preserve names
State: closed

- [x] closes #20308
- [x] closes #20570
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry

Labels:
name: Bug
name: MultiIndex

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

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

```diff
@@            Coverage Diff             @@
##           master   #20571      +/-   ##
==========================================
- Coverage   91.84%   91.82%   -0.03%     
==========================================
  Files         152      152              
  Lines       49270    49269       -1     
==========================================
- Hits        45252    45239      -13     
- Misses       4018     4030      +12
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.2% <100%> (-0.03%)` | :arrow_down: |
| #single | `41.9% <0%> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20571?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/indexes/multi.py](https://codecov.io/gh/pandas-dev/pandas/pull/20571/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9tdWx0aS5weQ==) | `95.05% <100%> (-0.01%)` | :arrow_down: |
| [pandas/plotting/\_converter.py](https://codecov.io/gh/pandas-dev/pandas/pull/20571/diff?src=pr&el=tree#diff-cGFuZGFzL3Bsb3R0aW5nL19jb252ZXJ0ZXIucHk=) | `65.07% <0%> (-1.74%)` | :arrow_down: |

------

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

@jreback ready to merge if there are no further comments
lgtm. merge away @toobaz