Question
Create a Series with named letter_grade that stores the list of grades in letters [A, A-, B+, B, B-, C+, C, C-, D+, D, D-,
Create a Series with named letter_grade that stores the list of grades in letters [A, A-, B+, B, B-, C+, C, C-, D+, D, D-, F]
2. Print out the Series. What is the index of B+, D-?
3. What is the data type of the Series?
4. type a Series named numeric_grade that stores the list of grades in letters [93, 90, 86, 82, 78, 72, 63, 57, 56, 52, 48]
5. Print out the Series. What is the index of 78, 63?
6. What is the data type of the Series?
7. Is the data type of numeric_grade different from the data type of letter_grade? Why?
8. The grade in numeric_grade is in 100 scale, convert it to a 10 scale, meaning divide by 10 and store in in a numeric_grade_2 variable
9. Print out the numerical list and the letter of rows that have grades between [6,7]
Insert new cell. Write a program to create a Dataframe having, 5 rows.
- The first column is Country = {United States, China, Japan, Germany, India} in which:
- The second column is Population = {19485394000000, 12237700479375, 4872415104315, 3693204332230, 2650725335364}
- The third column is Population_in_milliions and equals Population / 100000000
- type a new column call GPD, google GPD of this country and fill in the values
- type a new column call Area in km^2, google the area of this country and fill in the values
- type a new column call GPD_per_capita and fill in the values by dividing the GPD to population.
- type a new column call density in number of people per km^2 and fill in the values by dividing the population to area.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
1 Create a Series with named lettergrade that stores the list of grades in letters A A B B B C C C D ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started