I don't really work in the industry and practice programming as a hobby, so I am not qualified to talk about professionalism, but personally, I see absolutely no problem with from A import B apart from the fact that it may create a bit of confusion when referencing B in your code, for example:
from math import pi
print(pi)
versus:
import math
print(math.pi)
The second version makes it easier to understand where pi came from. This is also useful because there could be a function/method with the same name in multiple libraries that you are importing. One such example of this is the escape() function in both the html and glob libraries in Python.
from html import escape
from glob import escape
print(help(escape))
The above code would print out the escape() function of the glob library because it was most recently imported from there.
import html
import glob
print(help(html.escape))
print(help(glob.escape))
The above code differentiates between which one you're using.
This could also work:
from html import escape as h_escape
from glob import escape as g_escape
print(help(h_escape))
print(help(g_escape))
This above code also differentiates between the two things. But, again, I'm no industry expert, so I wouldn't know anything about the demands of it; but personally, I don't see any problem with it myself.
P.S. I got all of this from here: 5 Common Python Mistakes and How to Fix Them - Corey Schafer