On 24/08/2017 18:46, Alan Gauld via Tutor wrote:
On 24/08/17 14:51, C W wrote:
I have the following code, I get an error at the first line.
So don't make us guess. What is the error(full text please)?
from matplotlib.finance import quotes_historical_yahoo_ochl
And what does a dir() show for matplotlib.finance?
Are you sure the name is spelled right etc?
I have heard this package is either upgraded or replaced. If so, what do
you recommend?
Contact its author perhaps?
Is this the answer, perhaps.
>>>import matplotlib
>>>dir(matplotlib.finance)
>>>Traceback (most recent call last):
File "<ipython-input-2-87d00fcbe86c>", line 1, in <module>
dir(matplotlib.finance)
AttributeError: module 'matplotlib' has no attribute 'finance'
Thanks to Alan G? for his excellent teaching.
--
Sydney
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor