diff --git a/UFCFVQ-15-M Programming Task 2 Template.ipynb b/UFCFVQ-15-M Programming Task 2 Template.ipynb index 619e966c66a33678a6368e8f6821bfe04ec0ef1f..4bfa921de5bffa7ffce6816efc1f62cbc9ac82b6 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" ] }, {