DOC/TST: doctests leaving extraneous files
- [x] closes #23201 
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Hello @RomainSa! Thanks for updating the PR.

 - There are no PEP8 issues in the file [`pandas/core/frame.py`](https://github.com/RomainSa/pandas/blob/9d1b415d1e47c61d6274d40035a5ddfb9ea5b0d0/pandas/core/frame.py) !

 - There are no PEP8 issues in the file [`pandas/core/generic.py`](https://github.com/RomainSa/pandas/blob/9d1b415d1e47c61d6274d40035a5ddfb9ea5b0d0/pandas/core/generic.py) !



##### Comment last updated on November 22, 2018 at 13:03 Hours UTC # [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/23858?src=pr&el=h1) Report
> Merging [#23858](https://codecov.io/gh/pandas-dev/pandas/pull/23858?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/20ae4543c1d8838f52229830bfae0cc8626801bb?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

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

```diff
@@           Coverage Diff           @@
##           master   #23858   +/-   ##
=======================================
  Coverage   92.28%   92.28%           
=======================================
  Files         161      161           
  Lines       51500    51500           
=======================================
  Hits        47528    47528           
  Misses       3972     3972
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/23858?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/23858/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `97.02% <ø> (ø)` | :arrow_up: |
| [pandas/core/generic.py](https://codecov.io/gh/pandas-dev/pandas/pull/23858/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ2VuZXJpYy5weQ==) | `96.84% <ø> (ø)` | :arrow_up: |

------

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

@RomainSa did you run the doctests (the command is in the issue description) and verified that no file is created after running them? Yes, I used the command in issue description:
```
LINT=1 ci/code_check.sh
```
along with the ```git status``` command to make sure that the files initially created by the doctests were not created anymore after using the +SKIP flag You're welcome, thanks for your feedback @datapythonista ! thanks @RomainSa 