Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Import pandas and NumPy packages. ( 2 pts ) Create a list that contains id and a dictionary containing other sets of data,

Import pandas and NumPy packages. (2pts)
Create a list that contains "id" and a dictionary containing other sets of data, such as "name," "score," "attempt," and "pass/fail."(5pts)
Create a data frame by taking the dictionary and the list (as the index) you created in b).(3pts)
Select and display the 'name' and 'score' columns of the records (rows) of 1,3,5, and 6 from the data frame. (7pts)
Select and display the rows where the number of attempts is greater than 2. Then, select and display the rows where the score is missing (N/A). Also, display the records that hold both conditions. (13pts)
Append the new record "k" to the data frame with the given values of each column as name: 'Song,' score: '15.5', attempt: '1', and pass/fail: 'yes.' After appending the new record, delete the record of 'h' from the data frame. (10pts)
Replace values of 'yes' and 'no' in 'pass/fail' column with 'pass' and 'fail' and display new the data frame. (10pts)

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

Students also viewed these Databases questions

Question

Explain methods of metal extraction with examples.

Answered: 1 week ago