How to fix mpl_finance package for MatPlotLib?

前端 未结 3 784
日久生厌
日久生厌 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:27

    new version can be found here: https://pypi.org/project/mplfinance/

    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2020-12-19 19:32

    All code for matplotlib.finance moved to a separate repository. Here is an example of usage. To answer your question:

    from mpl_finance import candlestick_ohlc
    
    0 讨论(0)
提交回复
热议问题