Skip to content

Commit 4c02f00

Browse files
authored
Update analyze-baseball-stats-with-pandas-and-matplotlib.mdx
1 parent f3edc3f commit 4c02f00

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

projects/analyze-baseball-stats-with-pandas-and-matplotlib/analyze-baseball-stats-with-pandas-and-matplotlib.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,12 @@ plt.title('Average Home Runs per Player Over Time')
212212
plt.xlabel('Year')
213213
plt.ylabel('Avg Home Runs')
214214

215+
plt.grid(True)
215216
plt.show()
216217
```
217218

219+
![The graph](https://raw.githubusercontent.com/codedex-io/projects/refs/heads/main/projects/analyze-baseball-stats-with-pandas-and-matplotlib/average-home-runs-per-player.png)
220+
218221
It's interesting that you can see the abbreviated 2020 season in this graph! They played about half as many games that year due to COVID.
219222

220223
## Your Favorite Team vs. The League

0 commit comments

Comments
 (0)