Skip to content

Commit 8c6531b

Browse files
committed
fix a small bug in indexing for prob_dist
1 parent 51a9db6 commit 8c6531b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/prob_dist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ x_costco = prices.pct_change()[1:] * 100
882882

883883
```{code-cell} ipython3
884884
fig, ax = plt.subplots()
885-
ax.violinplot([x_amazon, x_costco])
885+
ax.violinplot([x_amazon['AMZN'], x_costco['COST']])
886886
ax.set_ylabel('monthly return (percent change)')
887887
ax.set_xlabel('retailers')
888888

0 commit comments

Comments
 (0)