diff --git a/UFCFVQ-15-M Programming Task 2 Template.ipynb b/UFCFVQ-15-M Programming Task 2 Template.ipynb index 416bca6137f96751b71eaa8e06c5979643c74d28..619e966c66a33678a6368e8f6821bfe04ec0ef1f 100644 --- a/UFCFVQ-15-M Programming Task 2 Template.ipynb +++ b/UFCFVQ-15-M Programming Task 2 Template.ipynb @@ -19,11 +19,41 @@ }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# add code here" + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Unnamed: 0 id_student gender region highest_education \\\n", + "0 0 11391 M East Anglian Region HE Qualification \n", + "1 1 28400 F Scotland HE Qualification \n", + "2 2 31604 F South East Region A Level or Equivalent \n", + "3 3 32885 F West Midlands Region Lower Than A Level \n", + "4 4 38053 M Wales A Level or Equivalent \n", + "\n", + " age_band disability final_result score \n", + "0 55<= N Pass 82.0 \n", + "1 35-55 N Pass 67.0 \n", + "2 35-55 N Pass 76.0 \n", + "3 0-35 N Pass 55.0 \n", + "4 35-55 N Pass 68.0 \n" + ] + } + ], + "source": [ + "# Importing the pandas library\n", + "\n", + "import pandas as pd\n", + "\n", + "# Read data, from a CSV file. Store it in a DataFrame.\n", + "\n", + "df = pd.read_csv(\"/Users/mscdatascience/Documents/assignment-PDS/mohammad_alsuulaimani_uwe_23086369_2023/task2a.csv\")\n", + "\n", + "# Display the five rows of the DataFrame to quickly examine its structure and content.\n", + "\n", + "print(df.head())\n" ] }, { @@ -328,7 +358,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.9.6" }, "vscode": { "interpreter": {