Backport PR #25171 on branch 0.24.x
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

why did u push this? backports are done automatically ic you followed the manual back port instructions, ok. # [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25248?src=pr&el=h1) Report
> Merging [#25248](https://codecov.io/gh/pandas-dev/pandas/pull/25248?src=pr&el=desc) into [0.24.x](https://codecov.io/gh/pandas-dev/pandas/commit/b134253f7a5e4cf310682444152a660c88410f52?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `100%`.

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

```diff
@@            Coverage Diff             @@
##           0.24.x   #25248      +/-   ##
==========================================
+ Coverage   92.37%   92.37%   +<.01%     
==========================================
  Files         166      166              
  Lines       52404    52405       +1     
==========================================
+ Hits        48410    48411       +1     
  Misses       3994     3994
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25248?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/json/table\_schema.py](https://codecov.io/gh/pandas-dev/pandas/pull/25248/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2pzb24vdGFibGVfc2NoZW1hLnB5) | `98.3% <100%> (+0.01%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25248?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/25248?src=pr&el=footer). Last update [b134253...748819c](https://codecov.io/gh/pandas-dev/pandas/pull/25248?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
 @jreback yes, I was asked to backport manually. All checks have passed. thanks @albertvillanova 