PR04 errors fix
- [x] closes #25105
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] get rid of the errors in the code base
- [x]  update the `code_check.sh` script to take into account the `PR04` type of errors
Hello @mwoss! Thanks for updating the PR.

















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

##### Comment last updated on February 11, 2019 at 01:06 Hours UTC # [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25157?src=pr&el=h1) Report
> Merging [#25157](https://codecov.io/gh/pandas-dev/pandas/pull/25157?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/e3b095074c5c3b29ec25a994cd204349b872d961?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/25157/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25157?src=pr&el=tree)

```diff
@@             Coverage Diff             @@
##           master   #25157       +/-   ##
===========================================
- Coverage   92.37%   42.86%   -49.51%     
===========================================
  Files         166      166               
  Lines       52408    52408               
===========================================
- Hits        48412    22467    -25945     
- Misses       3996    29941    +25945
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25157?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/formats/style.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2Zvcm1hdHMvc3R5bGUucHk=) | `17.49% <ø> (-79.2%)` | :arrow_down: |
| [pandas/core/algorithms.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvYWxnb3JpdGhtcy5weQ==) | `50.47% <ø> (-44.31%)` | :arrow_down: |
| [pandas/io/parquet.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL3BhcnF1ZXQucHk=) | `20.19% <ø> (-64.43%)` | :arrow_down: |
| [pandas/core/panel.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvcGFuZWwucHk=) | `42.02% <ø> (-55.89%)` | :arrow_down: |
| [pandas/core/groupby/groupby.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ3JvdXBieS9ncm91cGJ5LnB5) | `24.5% <ø> (-72.3%)` | :arrow_down: |
| [pandas/core/resample.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvcmVzYW1wbGUucHk=) | `23.27% <ø> (-73.97%)` | :arrow_down: |
| [pandas/core/groupby/grouper.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ3JvdXBieS9ncm91cGVyLnB5) | `18.31% <ø> (-79.86%)` | :arrow_down: |
| [pandas/core/generic.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ2VuZXJpYy5weQ==) | `39.89% <ø> (-56.74%)` | :arrow_down: |
| [pandas/io/formats/latex.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2Zvcm1hdHMvbGF0ZXgucHk=) | `0% <0%> (-100%)` | :arrow_down: |
| [pandas/core/categorical.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvY2F0ZWdvcmljYWwucHk=) | `0% <0%> (-100%)` | :arrow_down: |
| ... and [131 more](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree-more) | |

------

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

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

```diff
@@            Coverage Diff             @@
##           master   #25157      +/-   ##
==========================================
- Coverage   92.15%   91.93%   -0.23%     
==========================================
  Files         166      166              
  Lines       52294    52187     -107     
==========================================
- Hits        48194    47978     -216     
- Misses       4100     4209     +109
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.48% <ø> (-0.15%)` | :arrow_down: |
| #single | `42.14% <ø> (-0.13%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25157?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/formats/style.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2Zvcm1hdHMvc3R5bGUucHk=) | `96.69% <ø> (ø)` | :arrow_up: |
| [pandas/core/algorithms.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvYWxnb3JpdGhtcy5weQ==) | `94.77% <ø> (ø)` | :arrow_up: |
| [pandas/io/parquet.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL3BhcnF1ZXQucHk=) | `84.61% <ø> (ø)` | :arrow_up: |
| [pandas/core/panel.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvcGFuZWwucHk=) | `80.26% <ø> (-13.61%)` | :arrow_down: |
| [pandas/core/groupby/groupby.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ3JvdXBieS9ncm91cGJ5LnB5) | `96.8% <ø> (ø)` | :arrow_up: |
| [pandas/core/resample.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvcmVzYW1wbGUucHk=) | `97.22% <ø> (ø)` | :arrow_up: |
| [pandas/core/groupby/grouper.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ3JvdXBieS9ncm91cGVyLnB5) | `98.16% <ø> (ø)` | :arrow_up: |
| [pandas/core/generic.py](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ2VuZXJpYy5weQ==) | `94.68% <ø> (-1.71%)` | :arrow_down: |
| ... and [18 more](https://codecov.io/gh/pandas-dev/pandas/pull/25157/diff?src=pr&el=tree-more) | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25157?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/25157?src=pr&el=footer). Last update [1d1b14c...bffd111](https://codecov.io/gh/pandas-dev/pandas/pull/25157?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
 Should I post output as csv file, raw json or markdown table? You can just copy into comment.

> On Feb 6, 2019, at 4:29 PM, Mateusz Woś <notifications@github.com> wrote:
> 
> Should I post output as csv file, raw json or markdown table?
> 
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub <https://github.com/pandas-dev/pandas/pull/25157#issuecomment-461243811>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAlOUUj0fJkC4U4re6jkhFSeoxu6w--Vks5vK3NugaJpZM4ajaGn>.
> 

 | name 	| errors_delimited|
| :------------- |:-----|
| pandas.Timedelta     | GL02,GL03,PR01,PR02,PR06,PR06,PR07,PR09,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07 |
| pandas.Timedelta.max     |   GL02,GL03,PR02,PR06,PR06,PR07,PR09,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07 |
| pandas.Timedelta.min   |    GL02,GL03,PR02,PR06,PR06,PR07,PR09,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07 |
| pandas.factorize  |    PR07,EX02 |
| pandas.Grouper   |   SS03,SS06,PR01,PR02,PR06,PR08,PR09,PR08,PR09,PR06,PR07,PR06,PR08,PR09,PR07,PR07,PR09,PR07,PR06,PR07,EX02 |
| pandas.core.groupby.GroupBy.rank  |  SS05,PR08,PR09,PR06,PR09,PR08,PR09,PR06,PR09,RT03,SA04,SA05,SA04,SA05,SA04,SA05 |
| pandas.core.groupby.DataFrameGroupBy.rank   |  SS05,PR08,PR09,PR06,PR09,PR08,PR09,PR06,PR09,RT03,SA04,SA05,SA04,SA05,SA04,SA05 |
| pandas.read_parquet |  PR01,PR02,PR06,PR09,RT03|
| pandas.Panel.apply  |    SS05,PR01,PR02,PR09,PR08,PR09,RT02,RT03,EX02 |
| pandas.Panel.transpose  | L05,SS03,PR01,PR02,PR06,PR09,RT02,RT03,EX02 |
| pandas.core.resample.Resampler.std  |   PR01,PR06,RT01 |
| pandas.io.formats.style.Styler.render  |  PR01,PR02,RT02,RT04,RT05 |
 I'll fix rest of the errors tomorrow Validation errors script output after update.

| name 	| errors_delimited|
| :------------- |:-----|
| pandas.Timedelta     | GL02,GL03,PR01,PR02,PR06,PR06,PR07,PR09,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07 |
| pandas.Timedelta.max     |   GL02,GL03,PR02,PR06,PR06,PR07,PR09,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07 |
| pandas.Timedelta.min   |    GL02,GL03,PR02,PR06,PR06,PR07,PR09,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07,PR10,PR07 |
| pandas.factorize  |    PR07,EX02 |
| pandas.Grouper   |   SS03,SS06,PR01,PR02,PR06,PR08,PR09,PR08,PR09,PR06,PR07,PR06,PR08,PR09,PR06,EX02 |
| pandas.core.groupby.GroupBy.rank  |  PR08,PR09,PR06,PR09,PR08,PR09,PR06,PR09,RT03,SA04,SA05,SA04,SA05,SA04,SA05 |
| pandas.core.groupby.DataFrameGroupBy.rank   |  PR08,PR09,PR06,PR09,PR08,PR09,PR06,PR09,RT03,SA04,SA05,SA04,SA05,SA04,SA05 |
| pandas.read_parquet |  PR03,PR06,PR09,RT03|
| pandas.Panel.apply  |    PR01,PR02,PR09,PR08,PR09,RT02,RT03,EX02 |
| pandas.Panel.transpose  | GL05,SS03,PR01,PR02,PR06,PR09,RT02,RT03,EX02 |
| pandas.core.resample.Resampler.std  |   PR01,PR06,RT01 |
| pandas.io.formats.style.Styler.render  |  RT02,RT05 |
 @WillAyd merge when good @WillAyd all green :) thanks @mwoss 