Skip to content

Commit

Permalink
Fix misc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbraun committed Mar 3, 2023
1 parent fe9c424 commit 164cd17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ 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.0.4 (2023-03-03)
Fix some misc other sport references (thanks Emil!).

### v0.0.3 (2022-12-02)
Fix weird kg player units. Reword for clarity

Expand Down
4 changes: 2 additions & 2 deletions code/03_01_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
# Applying functions to columns
def is_e_metro(team):
"""
Takes some string named pos ('QB', 'K', 'RT' etc) and checks
whether it's a skill position (RB, WR, TE).
Takes some string named team ('WSH', 'CHI' etc) and checks whether they're in
the Metropolis division.
"""
return team in ['WSH', 'NYI', 'PIT', 'CAR', 'CBJ', 'PHI', 'NYR', 'NJD']

Expand Down
1 change: 1 addition & 0 deletions code/05_03_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def flatten_team(nested):
return flat

df_teams = DataFrame([flatten_team(x) for x in teams_json['teams']])

df_teams.head()

#########
Expand Down

0 comments on commit 164cd17

Please sign in to comment.