How to fix mpl_finance package for MatPlotLib?

前端 未结 3 814
日久生厌
日久生厌 2020-12-19 18:56

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

3条回答
  •  长情又很酷
    2020-12-19 19:29

    To import a module which is installed through pip with the name x you would mostly want to do import x.

    So, here

    import mpl_finance
    

    or to get one of its functions, e.g.

    from mpl_finance import candlestick_ohlc
    

提交回复
热议问题