Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create dataset using Pandas with the following lists: 1- Gender list ['male','female','male'] 2- Salaries list [20000,30000,40000] 3- Staff list ['Mohammed','Susan','Zaid'] 4- Status list['Married','Single','Single'] then compute
Create dataset using Pandas with the following lists: 1- Gender list ['male','female','male'] 2- Salaries list [20000,30000,40000] 3- Staff list ['Mohammed','Susan','Zaid'] 4- Status list['Married','Single','Single'] then compute the following: 1- In gender column, convert 'male' to 1, and 'female' to 2. 2- In the status column, convert 'Married' to 1, and 'Single' to 0. 3- In salaries column, calculate min, max, and mean. 4- Use data visualization(bar chart), to draw two columns :x=staff, and y=salaries.
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