I am heavy user of the pandas library. In order to keep useful custom made helper functions related to pandas library, I decided to create a custom project (my_proj) and a module pandas.py in it. Now I am developing another custom module related to ssh protocol in the same project.
Modules are created with pycharm. Structure of the project is as follows:
my_proj/src/my_proj/pandas.py
my_proj/src/my_proj/ssh.py
Everythin is OK and works properly. When I want to use site package's pandas I execute import pandas as pd
, when I want to use my_proj pandas, than I use from my_proj import pandas as mypd
.
But, now in ssh.py I need site package's pandas (not my_proj pandas).
If in ssh.py I use import pandas as pd
, pycharm imports my_proj/src/my_proj/pandas.py
instead of the pandas from site packages.
One solution would be to rename my_proj's pandas.py to something else, but I would like to avoid that if possible.
Is there another option to prevent loading library from current directory and import it from site packages?
What are my options?