Question: 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

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!