From 74d7d46614eb7657923c460ba441d2ab012d8f69 Mon Sep 17 00:00:00 2001 From: palewire Date: Mon, 4 Mar 2024 10:40:52 -0500 Subject: [PATCH] Add to the concat code too --- docs/src/concat.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/concat.md b/docs/src/concat.md index c770c7f..c1566fd 100644 --- a/docs/src/concat.md +++ b/docs/src/concat.md @@ -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") ```