Matplotlib -- TypeError: 'module' object is not callable I am new into ML. As per video tutorials when i try to execute the following lines i get an error.
However the instructor get successful execution.


Error is :



i have google about it but didnt get any clue. May be there is change in library ?
How can i solve this Error.
Instead of
import matplotlib as plt 

use
import matplotlib.pyplot as plt