diff --git a/UFCFVQ-15-M Programming Task 2 Template.ipynb b/UFCFVQ-15-M Programming Task 2 Template.ipynb index 798506c3c1c88300f4bb54c7774725949d65a987..be5962fb51616ad8be6e9e1289178b6a42f83bae 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": 2, + "execution_count": 19, "metadata": {}, "outputs": [ { @@ -73,7 +73,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 20, "metadata": {}, "outputs": [ { @@ -121,7 +121,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 21, "metadata": {}, "outputs": [ { @@ -182,7 +182,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 22, "metadata": {}, "outputs": [ { @@ -231,11 +231,31 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 28, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Unnamed: 0 id_student gender age_band disability score click_events\n", + "0 0 11391 M 55<= N 82.0 934.0\n", + "1 1 28400 F 35-55 N 67.0 1435.0\n", + "2 2 31604 F 35-55 N 76.0 2158.0\n", + "3 3 32885 F 0-35 N 55.0 1034.0\n", + "4 4 38053 M 35-55 N 68.0 2445.0\n" + ] + } + ], "source": [ - "# add code here" + "# Removing unnecessary rows from 'cleaned_data_frame' by using 'drop' method.\n", + "# The result will be stored in 'final_data_frame', which no longer includes 'region', 'final_result', 'highest_education' columns.\n", + "\n", + "final_data_frame = cleaned_data_frame.drop(columns=['region', 'final_result', 'highest_education'])\n", + "\n", + "# Displaying the Final DataFrame\n", + "\n", + "print(final_data_frame.head())\n" ] }, { @@ -255,7 +275,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -279,7 +299,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -303,7 +323,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -327,7 +347,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -351,7 +371,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -375,7 +395,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "metadata": {}, "outputs": [], "source": [