如何修复MatPlotLib的mpl_finance包? [英] How to fix mpl_finance package for MatPlotLib?

查看:246
本文介绍了如何修复MatPlotLib的mpl_finance包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

获取此错误消息:

MatplotlibDeprecationWarning: The finance module has been deprecated in mpl 2.0 and will be removed in mpl 2.2. Please use the module mpl_finance instead.

我该如何放置mpl_finance软件包.我已将其安装在pip中,但是正确的导入措辞是什么?

How do I put in place the mpl_finance package instead. I have it installed in pip, but what is the proper import phraseology?

import datetime as dt
import matplotlib.pyplot as plt
from matplotlib import style
from matplotlib.finance import candlestick_ohlc
import matplotlib.dates as mdates
import pandas as pd
import pandas_datareader.data as web
from googlefinance import getQuotes
import json
from datetime import datetime
from forex_python.converter import CurrencyRates
from yahoo_finance import Share

推荐答案

matplotlib.finance的所有代码均移至单独存储库.这是一个用法示例.要回答您的问题:

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

这篇关于如何修复MatPlotLib的mpl_finance包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆