From 861a0a7cf9a0683bad3cd36ea78acdd3e931ac8f Mon Sep 17 00:00:00 2001 From: julliathome <38748988+julliathome@users.noreply.github.com> Date: Thu, 10 Jun 2021 16:07:11 +0200 Subject: [PATCH] Update Exercises_1.ipynb Before, the task "How many sales with more than 500 in `Revenue` were made by men?" returns the ammount of men who spent exactly 500, not more than 500. --- Exercises_1.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Exercises_1.ipynb b/Exercises_1.ipynb index 4a656d2..d4123d6 100644 --- a/Exercises_1.ipynb +++ b/Exercises_1.ipynb @@ -1040,7 +1040,7 @@ }, "outputs": [], "source": [ - "sales.loc[(sales['Customer_Gender'] == 'M') & (sales['Revenue'] == 500)].shape[0]" + "sales.loc[(sales['Customer_Gender'] == 'M') & (sales['Revenue'] > 500)].shape[0]" ] }, {