pydata/pandas — pull request #2758 by spencerlyon2 (2013-01-26 07:45:56+00:00)
Title: Updated pandas.io.data.Options

Mostly housekeeping, but there were a few functionality additions:

* BUG: The URL's for current month options have been changed by yahoo so I changed the methods to reflect that.

* ENH: Now using lxml to html scraping under the hood (was using BeautifulSoup).

* ENH: When `Options.get_xxx_data()`, where xxx is either `options`, `call`, or `put`, a new instance variable is created. For current month options the variable is simply `self.calls` or `self.puts`. When future month data is retrieved the ivar becomes `self.callsMMYY` or `self.putsMMYY`.

* ENH: `Options.get_near_stock_price` now allows the user to specify optional `month` and `year` kwargs to get data near the stock price for a given expiry date.

* ENH: `Options.get_forward_data` now has an optional kwargs `near` and `above_below`. This allows the user to specify if they would like to only return forward looking data for options near the current stock price. This just obtains the data from `Options.get_near_stock_price` instead of `Options.get_xxx_data()`.