I have written simple class called CombinedAttributesAdder in the same directory where my .ipynb file is. Like:
-project
-project.ipynb
-combined_attributes_adder.py
This file contains class called CombinedAttributesAdder When I try to import this class into ipynb like:
from combined_attributes_adder import CombinedAttributesAdder
it gives me an error:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-73-65ed70439bcc> in <module>
----> 1 from combined_attributes_adder import CombinedAttributesAdder
ImportError: cannot import name 'CombinedAttributesAdder' from 'combined_attributes_adder' (/home/mat/Documents/Projects/machine-learning-notebooks/projects/combined_attributes_adder.py)
why is that?