NumPy beginner’s guide: Date formatting, stock quotes and Wikipedia sentiment analysis

Posted on Updated on


Last year I acted as one of the reviewers on a book from Packt Publishing: The NumPy 1.5 Beginner’s Guide (ISBN 13 : 978-1-84951-530-6) about the numerical programming library in the Python programming language. I was “blinded” by the publisher, so I did not know that the author was Ivan Idris before the book came out. For my reviewing effort I got a physical copy of the book, an electronic copy of another book and some new knowledge of certain aspects of the NumPy.

One of the things that I did not know before I came across it while reviewing the book was the date formatter in the plotting library (matplotlib) and the ability to download stock quotes via a single function in the NumPy library (there is an example starting on page 171 in the book). There is a ‘candlestick’ plot function that goes well with the return value of the quotes download function.

The plot shows an example of the use of date formatting with stock quotes downloaded from Yahoo! via NumPy together with sentiment analysis of Wikipedia revisions of the Pfizer company.


One thought on “NumPy beginner’s guide: Date formatting, stock quotes and Wikipedia sentiment analysis

    Frederic GEORJON said:
    October 23, 2013 at 2:52 am

    InfoTrie has developed FinSentS a Sentiment Analysis and News Analytics system. We process News, blogs and social media (mainly Twitter) for thousands of Stocks, FX and commodities. Sentiment generated is then correlated with asset prices. It can be used as a technical indicator or a quantitative signal for algorithms and systems

    We are using Numpy as part of our stacks in our engine

    We provide Sentiment API. Feel free to have a look on

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s