Quiz3 1- First, you will create and assign your own dataset. In this dataset, you are free to use any name of row and columns. I expect you to create 4 columns and 6 row in the dataset. For example: You can create a student dataset. In this dataset, you can give column names as student id, gender, height, average grade and department. 2- Secondly, you need to put some null values for one string value and one integer value in the dataset. Then you will show the count of null values. Instead of null values, you will create random values. When the null values are string value, you will get unique values in that column and you will choose one of them randomly. When the null value is integer, you will find average of the column and put this average value, instead of null. For example: The height of the student1 is null. You will find average of height column for all student. If the average is 163, you will change the null value as 163. If the string value is country, you will get all country as a unique and you will choose one of them randomly. You will change the null value with your choice in random country. 3- You will show the shape, head of your dataset. You will show the is there any null value in the data set. 4- You will describe and find the mean value for one of the integer column in your dataset. I want you to use pandas mean function in this step. 5- You will use group by function for one column. For example, you will use groupby for genders, and you will find the average age of each gender. Age Gender Female 42.54 Male 37.84

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

Quiz3

1- First, you will create and assign your own dataset. In this dataset, you are free to use any name of row and columns. I expect you to create 4 columns and 6 row in the dataset. For example:

You can create a student dataset. In this dataset, you can give column names as student id, gender, height, average grade and department.

2- Secondly, you need to put some null values for one string value and one integer value in the dataset. Then you will show the count of null values. Instead of null values, you will create random values. When the null values are string value, you will get unique values in that column and you will choose one of them randomly. When the null value is integer, you will find average of the column and put this average value, instead of null. For example: The height of the student1 is null. You will find average of height column for all student. If the average is 163, you will change the null value as 163. If the string value is country, you will get all country as a unique and you will choose one of them randomly. You will change the null value with your choice in random country.

3- You will show the shape, head of your dataset. You will show the is there any null value in the data set.

4- You will describe and find the mean value for one of the integer column in your dataset. I want you to use pandas mean function in this step.

5- You will use group by function for one column. For example, you will use groupby for genders, and you will find the average age of each gender.

Age

Gender

Female 42.54

Male

37.84 

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education