@@ -144,14 +144,46 @@ API changes
144
144
145
145
Current behavior:
146
146
147
- .. ipython:: python
148
- :okwarning:
147
+ .. code-block:: ipython
149
148
150
- from pandas.io.data import Options
151
- aapl = Options('aapl','yahoo')
152
- aapl.get_call_data().iloc[0:5,0:1]
153
- aapl.expiry_dates
154
- aapl.get_near_stock_price(expiry=aapl.expiry_dates[0:3]).iloc[0:5,0:1]
149
+ In [17]: from pandas.io.data import Options
150
+
151
+ In [18]: aapl = Options('aapl','yahoo')
152
+
153
+ In [19]: aapl.get_call_data().iloc[0:5,0:1]
154
+ Out[19]:
155
+ Last
156
+ Strike Expiry Type Symbol
157
+ 80 2014-11-14 call AAPL141114C00080000 29.05
158
+ 84 2014-11-14 call AAPL141114C00084000 24.80
159
+ 85 2014-11-14 call AAPL141114C00085000 24.05
160
+ 86 2014-11-14 call AAPL141114C00086000 22.76
161
+ 87 2014-11-14 call AAPL141114C00087000 21.74
162
+
163
+ In [20]: aapl.expiry_dates
164
+ Out[20]:
165
+ [datetime.date(2014, 11, 14),
166
+ datetime.date(2014, 11, 22),
167
+ datetime.date(2014, 11, 28),
168
+ datetime.date(2014, 12, 5),
169
+ datetime.date(2014, 12, 12),
170
+ datetime.date(2014, 12, 20),
171
+ datetime.date(2015, 1, 17),
172
+ datetime.date(2015, 2, 20),
173
+ datetime.date(2015, 4, 17),
174
+ datetime.date(2015, 7, 17),
175
+ datetime.date(2016, 1, 15),
176
+ datetime.date(2017, 1, 20)]
177
+
178
+ In [21]: aapl.get_near_stock_price(expiry=aapl.expiry_dates[0:3]).iloc[0:5,0:1]
179
+ Out[21]:
180
+ Last
181
+ Strike Expiry Type Symbol
182
+ 109 2014-11-22 call AAPL141122C00109000 1.48
183
+ 2014-11-28 call AAPL141128C00109000 1.79
184
+ 110 2014-11-14 call AAPL141114C00110000 0.55
185
+ 2014-11-22 call AAPL141122C00110000 1.02
186
+ 2014-11-28 call AAPL141128C00110000 1.32
155
187
156
188
See the Options documentation in :ref:`Remote Data <remote_data.yahoo_options>`
157
189
0 commit comments