This might be a stupid question. I don't understand why the first one throws an error while the other one works. Is there a simple explanation here?
In[2]: import scipy
In[3]: help(scipy.optimize)
Traceback (most recent call last):
File "C:.....lib\site-packages\IPython\core\interactiveshell.py", line 3035, in run_code
File "<ipython-input-3-87bd9e5565b6>", line 1, in <module>
help(scipy.optimize)
AttributeError: 'module' object has no attribute 'optimize'
In[4]: from scipy import optimize
In[5]: help(optimize)
Help on package scipy.optimize in scipy:..........................