[CLN] cleanup import reverse-dependencies
Parts of the code are made more difficult to reason about by depending on `pandas.io.formats`, which has dependencies all over the code.

This PR starts in on this by replacing `import Foo` with `import ABCFoo` where possible.  Along the way it cleans up import order.