Add explicit imports in top level pandas init as precursor to PR #25940
State: closed

- [x] closes ##25932 
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry


Labels:

Comments:
@WillAyd So my understanding is that I need to import explicitly from top level pandas, to allow direct imports from pandas in stata module for those that were throwing errors in original issue #25932
I have just pushed some changes - let me know. 
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/26017?src=pr&el=h1) Report
> Merging [#26017](https://codecov.io/gh/pandas-dev/pandas/pull/26017?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/a1fee9199eba7ebf423880243936b9f1501d3d3a?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `n/a`.

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

```diff
@@            Coverage Diff             @@
##           master   #26017      +/-   ##
==========================================
- Coverage   91.82%   91.81%   -0.01%     
==========================================
  Files         175      175              
  Lines       52551    52551              
==========================================
- Hits        48256    48252       -4     
- Misses       4295     4299       +4
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.38% <ø> (ø)` | :arrow_up: |
| #single | `40.72% <ø> (-0.14%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/26017?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/gbq.py](https://codecov.io/gh/pandas-dev/pandas/pull/26017/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2dicS5weQ==) | `75% <0%> (-12.5%)` | :arrow_down: |
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/26017/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `96.79% <0%> (-0.12%)` | :arrow_down: |

------

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

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

```diff
@@            Coverage Diff             @@
##           master   #26017      +/-   ##
==========================================
- Coverage   91.82%   91.81%   -0.01%     
==========================================
  Files         175      175              
  Lines       52551    52551              
==========================================
- Hits        48256    48252       -4     
- Misses       4295     4299       +4
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.38% <ø> (ø)` | :arrow_up: |
| #single | `40.72% <ø> (-0.14%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/26017?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/gbq.py](https://codecov.io/gh/pandas-dev/pandas/pull/26017/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2dicS5weQ==) | `75% <0%> (-12.5%)` | :arrow_down: |
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/26017/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `96.79% <0%> (-0.12%)` | :arrow_down: |

------

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

Hello @ryankarlos! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:

* In the file [`pandas/__init__.py`](https://github.com/pandas-dev/pandas/blob/47210512d9c674eba4098c46ebe74333b3ffe13d/pandas/__init__.py):

> [Line 59:80](https://github.com/pandas-dev/pandas/blob/47210512d9c674eba4098c46ebe74333b3ffe13d/pandas/__init__.py#L59): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (88 > 79 characters)


Just closed this and opened a new PR #26019