Question: 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

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!