From 39a6c9c50173833ca8d9ad20f9f10844bdcba251 Mon Sep 17 00:00:00 2001 From: Muhammad <82376665+zenoper@users.noreply.github.com> Date: Sat, 20 Apr 2024 20:35:14 +0500 Subject: [PATCH] Update pandas-exercises-solutions.ipynb I think .mean() itself no longer works with numeric_only set to False by default. --- .../pandas-exercises-solutions.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/section-2-data-science-and-ml-tools/pandas-exercises-solutions.ipynb b/section-2-data-science-and-ml-tools/pandas-exercises-solutions.ipynb index bb76c38ae..f0d3c26ac 100644 --- a/section-2-data-science-and-ml-tools/pandas-exercises-solutions.ipynb +++ b/section-2-data-science-and-ml-tools/pandas-exercises-solutions.ipynb @@ -1204,7 +1204,7 @@ ], "source": [ "# Group columns of the car sales DataFrame by the Make column and find the average\n", - "car_sales.groupby([\"Make\"]).mean()" + "car_sales.groupby(["Make"]).mean(numeric_only=True)" ] }, {