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