Skip to content

Commit

Permalink
fix a small bug in indexing for prob_dist
Browse files Browse the repository at this point in the history
  • Loading branch information
HumphreyYang committed Nov 2, 2024
1 parent 51a9db6 commit 8c6531b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lectures/prob_dist.md
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ x_costco = prices.pct_change()[1:] * 100

```{code-cell} ipython3
fig, ax = plt.subplots()
ax.violinplot([x_amazon, x_costco])
ax.violinplot([x_amazon['AMZN'], x_costco['COST']])
ax.set_ylabel('monthly return (percent change)')
ax.set_xlabel('retailers')
Expand Down

0 comments on commit 8c6531b

Please sign in to comment.