I have a project directory structure like below
|project 
|-__init__.py
 |-src 
  |- __init.py__
  |- features
   |- __init.py__
   |- clean_data.py
 |-notebooks 
  |- notebook.ipynb 
The main directory is called project under which I have two directories- src and notebooks.
I want to import the module clean_data.py under features directory (which is under src) in my notebook.ipynb file.
I tried this:
from ..src.features import clean_data 
since all directories are serving as package with init.py file in each of them.
But it throws an error. Have spent quite a lot of effort in trying to figure this out but not sure why I am getting the error. As per this article too, I seem to be accessing the module correctly
mportError                               Traceback (most recent call last)
<ipython-input-23-11fd29e06b4c> in <module>()
----> 1 from ..src.features import clean_data
ImportError: attempted relative import with no known parent package

 
    