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
Step: 1
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