STYLE loosen inconsistent namespace check
For context, see #40468, where the error which was fixed was arguably a false-positive.

I've loosened the check so that now it only errors / replaces if:
- you imported an object from somewhere in pandas `e.g. from pandas.io.formats import info`
- you also accessed that object as `pd.` or `pandas.` (e.g. `pd.info` or `pandas.info`)

Before, it just checked whether an object appeared both with and without the `pd.` prefix, which was too tight a check - sorry about that :flushed: 

I've also added line number and column offset of the inconsistency for ease of checking/fixing
can you merge master; i think the docbuild should be fixed (not sure about the other one) @MarcoGorelli can you merge master and ping on greenish @MarcoGorelli if you an merge master once more @jreback sure, done thanks @MarcoGorelli 