Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

{ 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

Working with athletes who dope

Answered: 1 week ago

Question

Explain all drawbacks of the application procedure.

Answered: 1 week ago

Question

=+4. What do you think?

Answered: 1 week ago