(Closes #25029) Removed extra bracket from cheatsheet code example.
State: closed

Closes #25029

There was an additional bracket present under the "Create DataFrame with a MultiIndex" code example.

I removed this in both the English and Japanese versions of the cheatsheet.

Labels:
name: Docs

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

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

```diff
@@             Coverage Diff             @@
##           master   #25032       +/-   ##
===========================================
- Coverage   92.38%   42.87%   -49.51%     
===========================================
  Files         166      166               
  Lines       52401    52401               
===========================================
- Hits        48409    22468    -25941     
- Misses       3992    29933    +25941
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `?` | |
| #single | `42.87% <ø> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25032?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/formats/latex.py](https://codecov.io/gh/pandas-dev/pandas/pull/25032/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2Zvcm1hdHMvbGF0ZXgucHk=) | `0% <0%> (-100%)` | :arrow_down: |
| [pandas/core/categorical.py](https://codecov.io/gh/pandas-dev/pandas/pull/25032/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvY2F0ZWdvcmljYWwucHk=) | `0% <0%> (-100%)` | :arrow_down: |
| [pandas/io/sas/sas\_constants.py](https://codecov.io/gh/pandas-dev/pandas/pull/25032/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL3Nhcy9zYXNfY29uc3RhbnRzLnB5) | `0% <0%> (-100%)` | :arrow_down: |
| [pandas/tseries/plotting.py](https://codecov.io/gh/pandas-dev/pandas/pull/25032/diff?src=pr&el=tree#diff-cGFuZGFzL3RzZXJpZXMvcGxvdHRpbmcucHk=) | `0% <0%> (-100%)` | :arrow_down: |
| [pandas/tseries/converter.py](https://codecov.io/gh/pandas-dev/pandas/pull/25032/diff?src=pr&el=tree#diff-cGFuZGFzL3RzZXJpZXMvY29udmVydGVyLnB5) | `0% <0%> (-100%)` | :arrow_down: |
| [pandas/io/formats/html.py](https://codecov.io/gh/pandas-dev/pandas/pull/25032/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2Zvcm1hdHMvaHRtbC5weQ==) | `0% <0%> (-99.35%)` | :arrow_down: |
| [pandas/core/groupby/categorical.py](https://codecov.io/gh/pandas-dev/pandas/pull/25032/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ3JvdXBieS9jYXRlZ29yaWNhbC5weQ==) | `0% <0%> (-95.46%)` | :arrow_down: |
| [pandas/io/sas/sas7bdat.py](https://codecov.io/gh/pandas-dev/pandas/pull/25032/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL3Nhcy9zYXM3YmRhdC5weQ==) | `0% <0%> (-91.17%)` | :arrow_down: |
| [pandas/io/sas/sas\_xport.py](https://codecov.io/gh/pandas-dev/pandas/pull/25032/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL3Nhcy9zYXNfeHBvcnQucHk=) | `0% <0%> (-90.15%)` | :arrow_down: |
| [pandas/core/tools/numeric.py](https://codecov.io/gh/pandas-dev/pandas/pull/25032/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvdG9vbHMvbnVtZXJpYy5weQ==) | `10.44% <0%> (-89.56%)` | :arrow_down: |
| ... and [123 more](https://codecov.io/gh/pandas-dev/pandas/pull/25032/diff?src=pr&el=tree-more) | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25032?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/25032?src=pr&el=footer). Last update [b9f2e2b...d10689b](https://codecov.io/gh/pandas-dev/pandas/pull/25032?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/25032?src=pr&el=h1) Report
> Merging [#25032](https://codecov.io/gh/pandas-dev/pandas/pull/25032?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/b9f2e2bd526ad69fe3d737d395742193e29fd0e5?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/25032/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25032?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #25032      +/-   ##
==========================================
+ Coverage   92.38%   92.38%   +<.01%     
==========================================
  Files         166      166              
  Lines       52401    52401              
==========================================
+ Hits        48409    48410       +1     
+ Misses       3992     3991       -1
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25032?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/25032/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `88.13% <0%> (+0.09%)` | :arrow_up: |

------

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

doc/cheatsheet/Pandas_Cheat_Sheet.pptx was deleted?
> doc/cheatsheet/Pandas_Cheat_Sheet.pptx was deleted?

No. I changed it, along with Pandas_Cheat_Sheet_JA.pptx and generated the .pdf files off of the back of those, yet the commit keeps showing doc/cheatsheet/Pandas_Cheat_Sheet.pptx as having been deleted, despite it still existing in my repository.

I have checked if the file is tracked, which it is, yet when committing it only shows that three files have been updated, despite four showing as having been modified.

Any ideas what is happening here?
you may need to ``git add <file> -f`` as this is probably excluded by default in the .gitignore
> you may need to `git add <file> -f` as this is probably excluded by default in the .gitignore

I have tried this (with a fresh clone of the repository), adding each individual file via your suggested manner, and it is still producing the same output, which states that four files have been changed, yet only lists three files in the summary:

```
4 files changed, 0 insertions(+), 0 deletions(-)                                                                 
rewrite doc/cheatsheet/Pandas_Cheat_Sheet.pdf (73%)                                                              
rewrite doc/cheatsheet/Pandas_Cheat_Sheet_JA.pdf (93%)                                                           
rewrite doc/cheatsheet/Pandas_Cheat_Sheet_JA.pptx (98%)
--
```

What else could cause this?
@MusTheDataGuy no idea and I don't think gitignore affects those files anyway. Any chance you've been able to figure this out? Maybe another version of git would work?
> @MusTheDataGuy no idea and I don't think gitignore affects those files anyway. Any chance you've been able to figure this out? Maybe another version of git would work?

I have the latest version of Git and it still produces the same effect - only three files showing as updated despite detecting four before the commit.
after you add, did you force push?
> after you add, did you force push?

I just tried this method and still nothing - `doc/cheatsheet/Pandas_Cheat_Sheet.pptx` still shows up as deleted.
thanks @MusTheDataGuy