Skip to content

Commit 2758eea

Browse files
committed
DOC: fix exceptions in docs
1 parent c99f78a commit 2758eea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/stats.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Let's pull in some sample data:
200200
data = dict((sym, DataReader(sym, "yahoo"))
201201
for sym in symbols)
202202
panel = Panel(data).swapaxes('items', 'minor')
203-
close_px = panel['close']
203+
close_px = panel['Close']
204204
205205
# convert closing prices to returns
206206
rets = close_px / close_px.shift(1) - 1
@@ -289,7 +289,7 @@ actually quite easy:
289289
.. ipython:: python
290290
291291
# make the units somewhat comparable
292-
volume = panel['volume'] / 1e8
292+
volume = panel['Volume'] / 1e8
293293
model = ols(y=volume, x={'return' : np.abs(rets)})
294294
model
295295

0 commit comments

Comments
 (0)