Skip to content

Commit

Permalink
fix: pandas mean issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbraun committed Apr 22, 2024
1 parent 20eaf5d commit 66968ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ If I were using Windows, it might look like this:
Set these aside for now and we'll pick them up in chapter 2.

## Changelog
### v0.1.4 (2024-04-22)
Fix Pandas `mean` example. More: Pandas changed their defaults to throw an
error if you try to call this on string columns. Fixed example to explicitely
only call it on numeric data.

### v0.1.3 (2024-02-19)
Fixed typo in the introduction — thanks Matt!

Expand Down
2 changes: 1 addition & 1 deletion code/03_02_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# book picks up here:

pg.mean()
pg[['shots', 'goals', 'assists', 'time_ice', 'pen_min']].mean()
pg.max()

# Axis
Expand Down

0 comments on commit 66968ad

Please sign in to comment.