DOC: Update cheat sheet and create link in docs
State: closed

Update pandas cheat sheet to use `drop(columns=['colname'])`.  

Provide link to cheat sheet from the tutorials page.

Based on discussion a while back on gitter with @jorisvandenbossche , maintainers may want the link to the cheat sheet in tutorials.rst to not point to the GitHub repository as I've edited it here, but to a place within the `http://pandas.pydata.org/pandas-docs/stable/` tree, which means when you publish the docs, you have to copy the PDF version of the cheat sheet to the server hosting the docs.


Labels:
name: Docs

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

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

```diff
@@            Coverage Diff             @@
##           master   #20366      +/-   ##
==========================================
+ Coverage   91.78%   91.79%   +0.01%     
==========================================
  Files         152      152              
  Lines       49196    49183      -13     
==========================================
- Hits        45153    45147       -6     
+ Misses       4043     4036       -7
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.17% <ø> (+0.01%)` | :arrow_up: |
| #single | `41.83% <ø> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20366?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20366/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `83.74% <0%> (-0.21%)` | :arrow_down: |
| [pandas/core/generic.py](https://codecov.io/gh/pandas-dev/pandas/pull/20366/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ2VuZXJpYy5weQ==) | `95.85% <0%> (-0.01%)` | :arrow_down: |
| [pandas/errors/\_\_init\_\_.py](https://codecov.io/gh/pandas-dev/pandas/pull/20366/diff?src=pr&el=tree#diff-cGFuZGFzL2Vycm9ycy9fX2luaXRfXy5weQ==) | `92.3% <0%> (ø)` | :arrow_up: |
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/20366/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `97.18% <0%> (ø)` | :arrow_up: |
| [pandas/core/series.py](https://codecov.io/gh/pandas-dev/pandas/pull/20366/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvc2VyaWVzLnB5) | `93.84% <0%> (ø)` | :arrow_up: |
| [pandas/core/indexes/datetimelike.py](https://codecov.io/gh/pandas-dev/pandas/pull/20366/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9kYXRldGltZWxpa2UucHk=) | `96.72% <0%> (ø)` | :arrow_up: |
| [pandas/core/strings.py](https://codecov.io/gh/pandas-dev/pandas/pull/20366/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvc3RyaW5ncy5weQ==) | `98.32% <0%> (ø)` | :arrow_up: |
| [pandas/core/reshape/tile.py](https://codecov.io/gh/pandas-dev/pandas/pull/20366/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvcmVzaGFwZS90aWxlLnB5) | `93.37% <0%> (ø)` | :arrow_up: |
| [pandas/core/indexes/base.py](https://codecov.io/gh/pandas-dev/pandas/pull/20366/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9iYXNlLnB5) | `96.67% <0%> (ø)` | :arrow_up: |
| [pandas/core/ops.py](https://codecov.io/gh/pandas-dev/pandas/pull/20366/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvb3BzLnB5) | `96.35% <0%> (ø)` | :arrow_up: |
| ... and [1 more](https://codecov.io/gh/pandas-dev/pandas/pull/20366/diff?src=pr&el=tree-more) | |

------

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

@Dr-Irv I uploaded the PPF and PPT from this PR to our webserver

- http://pandas.pydata.org/Pandas_Cheat_Sheet.pdf
- http://pandas.pydata.org/Pandas_Cheat_Sheet.pptx

Would you mind updating whatever links you want to point to those?

@jorisvandenbossche do we care about maintaining one of these per release, or just the latest? I think just the latest.
@TomAugspurger OK, I just pushed a change to point to the PDF.  I don't think the PPT should be on the site - it's the "source code". 

Will you set something up in the scripts that do releases that copies the cheat sheet from the source directory to the proper location on the server?  So then if other changes are made as part of the development process, the final version would get published automatically upon a new release?

https://github.com/pandas-dev/pandas/wiki/Release-Checklist/_compare/93f266d34866e92db81e9c61b1b153196119f536...0cacf4f3ad1bf73244507f128a9f87a00b00a0dd

need to automate that, but yes.
The latest is fine I suppose. 
In principle, if we have a scripts that automates this, we could also use pandas.pydata.org/pandas-docs/stable/... as the url, which points to ../version/.. that gets updated at each release, so we keep the older ones available. 
But for now just the latest is certainly fine!
OK, let's just keep latest at the root.