Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 . 3 : Diversity in Tech For this problem, you will be using data on diversity in top technology companies. Use the dictionary

Part 1.3: Diversity in Tech
For this problem, you will be using data on diversity in top technology companies. Use the dictionary tech_diversity_data to access the information.
You would like to analyze the nested dictionary (i.e., dictionary of dictionaries) to find the companies that have a lower ratio of 2 given groups of people than the given ratio, and return a dictionary of the companies and the ratio associated with the groups at the company.
For example, if ratio =0.5 and fields =['women_of_color','total_female'], then the returning dictionary should contain all of the companies with the ratio of women_of_color to total_female employees less than 0.5.
I.e. calculated_ratio = row[women_of_color']/ row['total_female'])
If the calculated_ratio is less than 0.5, the item { company_name: calculated_ratio} is put in the dictionary.
Define the following function:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How is the standard cost per unit for factory overhead determined?

Answered: 1 week ago

Question

Identify the cause of a performance problem. page 363

Answered: 1 week ago