'Will the library be imported twice?

I am writing a python project. I am using a library (pandas) inside a module where my class is stored. Then I am importing this module to the main script. Then want use the same library inside my main script.

Will the library be imported twice? If yes, what are the performance side effects? How can I avoid them?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source