From ea3c398d9395e0c536b2ecfa3b52a183c8dc139e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9CMSS3-ALSULAIMA=E2=80=9D?=
 <Mohammed3.Alsulaimani@live.uwe.ac.uk>
Date: Tue, 14 Nov 2023 07:05:41 +0400
Subject: [PATCH] cleaned the data frame

---
 UFCFVQ-15-M Programming Task 2 Template.ipynb | 31 ++++++++++++-------
 1 file changed, 19 insertions(+), 12 deletions(-)

diff --git a/UFCFVQ-15-M Programming Task 2 Template.ipynb b/UFCFVQ-15-M Programming Task 2 Template.ipynb
index 7afe269..798506c 100644
--- a/UFCFVQ-15-M Programming Task 2 Template.ipynb	
+++ b/UFCFVQ-15-M Programming Task 2 Template.ipynb	
@@ -19,7 +19,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 3,
+   "execution_count": 2,
    "metadata": {},
    "outputs": [
     {
@@ -73,7 +73,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 5,
+   "execution_count": 3,
    "metadata": {},
    "outputs": [
     {
@@ -121,7 +121,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 6,
+   "execution_count": 4,
    "metadata": {},
    "outputs": [
     {
@@ -182,7 +182,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 9,
+   "execution_count": 5,
    "metadata": {},
    "outputs": [
     {
@@ -205,7 +205,14 @@
      ]
     }
    ],
-   "source": []
+   "source": [
+    "\n",
+    "# Removing rows containing missing values\n",
+    "cleaned_data_frame = merged_data_frame.dropna()\n",
+    "\n",
+    "# Displaying the cleaned new DataFrame\n",
+    "print(cleaned_data_frame.head())\n"
+   ]
   },
   {
    "cell_type": "markdown",
@@ -224,7 +231,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 6,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -248,7 +255,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 7,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -272,7 +279,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 8,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -296,7 +303,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 9,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -320,7 +327,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 10,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -344,7 +351,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 11,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -368,7 +375,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 12,
    "metadata": {},
    "outputs": [],
    "source": [
-- 
GitLab