CLN: io/formats/html.py: refactor
State: closed

- [ n/a] follow-on from #22726
- [x] tests ~~added~~ / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry

remove `max_rows` and `max_cols` from `HTMLFormatter` as truncation is now handled by `DataFrameFormatter`

note: this PR should be orthogonal to #22655

Labels:
name: Refactor
description: Internal refactoring of code
name: IO HTML
description: read_html, to_html, Styler.apply, Styler.applymap
name: Clean

Comments:
Hello @simonjayhawkins! Thanks for submitting the PR.

 - There are no PEP8 issues in the file [`pandas/io/formats/format.py`](https://github.com/simonjayhawkins/pandas/blob/5644532ad9a7419af0037f435356c1e545701ee6/pandas/io/formats/format.py) !

 - There are no PEP8 issues in the file [`pandas/io/formats/html.py`](https://github.com/simonjayhawkins/pandas/blob/5644532ad9a7419af0037f435356c1e545701ee6/pandas/io/formats/html.py) !


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

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

```diff
@@            Coverage Diff             @@
##           master   #23818      +/-   ##
==========================================
- Coverage   92.28%   92.28%   -0.01%     
==========================================
  Files         161      161              
  Lines       51500    51494       -6     
==========================================
- Hits        47528    47522       -6     
  Misses       3972     3972
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/23818?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/formats/html.py](https://codecov.io/gh/pandas-dev/pandas/pull/23818/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2Zvcm1hdHMvaHRtbC5weQ==) | `97.63% <100%> (-0.05%)` | :arrow_down: |
| [pandas/io/formats/format.py](https://codecov.io/gh/pandas-dev/pandas/pull/23818/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2Zvcm1hdHMvZm9ybWF0LnB5) | `97.76% <100%> (ø)` | :arrow_up: |

------

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

these changes are ok, though @simonjayhawkins pls add a note anyhow in api breaking changes (they are private but just a notice)
@gfyoung @jreback note about api breaking change has been added to whatsnew
thanks @simonjayhawkins