From 643a8ae58b174b1dd26cbcf613d8fc3ca6c8e6ab 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: Mon, 13 Nov 2023 07:00:16 +0400 Subject: [PATCH] FR2.2 --- UFCFVQ-15-M Programming Task 2 Template.ipynb | 30 +++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/UFCFVQ-15-M Programming Task 2 Template.ipynb b/UFCFVQ-15-M Programming Task 2 Template.ipynb index 619e966..4bfa921 100644 --- a/UFCFVQ-15-M Programming Task 2 Template.ipynb +++ b/UFCFVQ-15-M Programming Task 2 Template.ipynb @@ -73,11 +73,35 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " id_student click_events\n", + "0 6516 2791.0\n", + "1 8462 656.0\n", + "2 11391 934.0\n", + "3 23629 NaN\n", + "4 23698 910.0\n" + ] + } + ], "source": [ - "# add code here" + "# Importing the pandas library\n", + "\n", + "import pandas as pd\n", + "\n", + "# Read data, from a CSV file.\n", + "# The columns are labeled as 'id_student' and 'click_events.\n", + "\n", + "df = pd.read_csv(\"/Users/mscdatascience/Documents/assignment-PDS/mohammad_alsuulaimani_uwe_23086369_2023/task2b.csv\", names=['id_student', 'click_events'])\n", + "\n", + "# Display the five rows of the DataFrame to quickly examine its structure and content.\n", + "\n", + "print(df.head())\n" ] }, { -- GitLab