Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access with AI-Powered 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

What is meant by planning or define planning?

Answered: 1 week ago

Question

Define span of management or define span of control ?

Answered: 1 week ago

Question

What is meant by formal organisation ?

Answered: 1 week ago

Question

What is meant by staff authority ?

Answered: 1 week ago