Hey all! I am curious as to how the rest of the community imports their dependencies and why they choose to do it that way.
For instance, I generally find myself either bring in the library itself eg
import pandas as pd or a class within the library eg
from requests import Session. This has always worked for me, but I've heard others swear that you should only import the methods or functions you need for performance and/or security reasons.
So how do you bring in dependencies that you need and what is your reasoning behind doing it that way??