Getting this error message:
MatplotlibDeprecationWarning: The finance module has been deprecated in mpl 2.0 and will be removed in mpl 2.2. Please use the modu
To import a module which is installed through pip with the name x you would mostly want to do import x.
x
import x
So, here
import mpl_finance
or to get one of its functions, e.g.
from mpl_finance import candlestick_ohlc