Skip to content

Commit

Permalink
Add to the concat code too
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Mar 4, 2024
1 parent 050dbc1 commit 74d7d46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/concat.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ accident_list = pd.read_csv("https://raw.githubusercontent.com/palewire/first-py
accident_list['latimes_make_and_model'] = accident_list['latimes_make_and_model'].str.upper()
accident_counts = accident_list.groupby("latimes_make_and_model").size().reset_index().rename(columns={0: "accidents"})
survey = pd.read_csv("https://raw.githubusercontent.com/palewire/first-python-notebook/main/docs/src/_static/faa-survey.csv")
survey['latimes_make_and_model'] = survey['latimes_make_and_model'].str.upper()
merged_list = pd.merge(accident_counts, survey, on="latimes_make_and_model")
```

Expand Down

0 comments on commit 74d7d46

Please sign in to comment.