Question: 1) In python: importing pandas, and numpy. With a given dataset containing name, and enjoyment(0-10 including endpoints). add a third column of strings to the

1)

In python: importing pandas, and numpy. With a given dataset containing name, and enjoyment(0-10 including endpoints). add a third column of strings to the dataset known as preferences(A, B, Either) based on values from enjoyment. :A(0-4.9), Either(5), B(5.1-10).

Names: Steve, John, Abby, Michael, Ginni

Enjoyment: 2,7,5,0,9

Please either build a control structure or use Pandas cut function.

2)In python(with pandas and numpy),Create a bar/ pie graph based on the 3rd column to show the distribution in the class. also generate code to determine the value in each group(A, B, Either)

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!