Question: { cells: [ { cell _ type: code, execution _ count: 2 , id : c 1 f 8 3 3 e

{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"id": "c1f833e6",
"metadata": {},
"outputs": [],
"source": [
"#Assignment 3-05/10/2024 CIS 2300
",
"
",
"#Name:
",
"
",
"#Due Date: 05/17/202311:59 PM
",
"#All data are found in Course Documents/ Class Presentations
",
"#Please Answer below each question:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "7c32e755",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "4aeed37a",
"metadata": {},
"outputs": [],
"source": [
"#Question 1:
",
"# Using the employee and dept_id files, write a code that gives the average salary (mean()) for each department(dept_name should be one of the columns):
",
"# (1.5 points)
"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "97465601",
"metadata": {},
"outputs": [],
"source": [
"#Question 2:
",
"#Using the Titanic data, get the women who were survived.
",
"#Show the plot for number of the survived women in each Pclass.
",
"# (2 points)"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "542e17f9",
"metadata": {},
"outputs": [],
"source": [
"# Question 3:
",
"# Using the world population data, find the median population on year 2021 of all countries.
",
"#which country has this population. (2 points) # If the number of rows are even, please drop the row with min population.
",
"
",
"#Find the average population of all countries in 2021- exclude the countries with more than one billion and less than one million in 2021.(2 points)
"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "10dccfb7",
"metadata": {},
"outputs": [],
"source": [
"#Question 4:
",
"#In world population data, add the column 'Percentage', to calculate the percentage of each country's population in 2021.(compare to whole population of the world)
",
"#Name the file wrd_pop_prcg_2021 and save it into a csv file.
",
"#(2.5 points)
"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3(ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!