From ea4ee3f49390751578bf36f71a24ecfb7bbf8559 Mon Sep 17 00:00:00 2001 From: scuti Date: Sat, 19 Apr 2025 15:41:31 -0700 Subject: [PATCH] Check against people who weren't paying attention. --- stackoverflow-survey.ipynb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stackoverflow-survey.ipynb b/stackoverflow-survey.ipynb index aa9ae02..3e7f5cb 100644 --- a/stackoverflow-survey.ipynb +++ b/stackoverflow-survey.ipynb @@ -30,7 +30,12 @@ "print(so_df.keys())\n", "so_df.describe()\n", "\n", - "# print(so_df[:3])" + "# check for people who aren't paying attention\n", + "count_not_apple = (so_df[\"Check\"] != \"Apples\").sum()\n", + "print(count_not_apple)\n", + "print(so_df.shape)\n", + "assert(count_not_apple == 0)\n", + "# print(so_df[:3])\n" ] }, {