Menu

[Solved]Use Built Max Function Please Employeesjson File Questions Shortened Version Content File Q37086391

BlockPy: #495) Correlating Work The employees of your company (which still makes funny dog pictures) are upset because they bBlockPy: #492) Salary Distributions The company you created (which makes funny dog pictures) is having a meeting to discuss e

Do not use the built in max function please

Employees.json is the same file for both questions, here is ashortened version of the content of the file:

[ { “Name”: “Victor Martinez”, “New Sales”: 320, “Salary”: 26400, “ID”: 1, “Dog Pictures Made”: 200, “Position”: “Armed forces logistics/support/administrative officer” }, { “Name”: “David Kidd”, “New Sales”: 120, “Salary”: 11600, “ID”: 2, “Dog Pictures Made”: 220, “Position”: “Engineer, manufacturing systems” }, { “Name”: “Andre Freeman”, “New Sales”: 115, “Salary”: 54400, “ID”: 3, “Dog Pictures Made”: 197, “Position”: “Newspaper journalist” }, { “Name”: “Corey Rivas Jr.”, “New Sales”: 425, “Salary”: 60100, “ID”: 4, “Dog Pictures Made”: 114, “Position”: “Facilities manager” }, { “Name”: “Meredith Meyer”, “New Sales”: 385, “Salary”: 48400, “ID”: 5, “Dog Pictures Made”: 251, “Position”: “Public relations account executive” }, { “Name”: “Jamie Wilson”, “New Sales”: 75, “Salary”: 76000, “ID”: 6, “Dog Pictures Made”: 97, “Position”: “Further education lecturer” }, { “Name”: “Robert Hughes”, “New Sales”: 45, “Salary”: 70400, “ID”: 7, “Dog Pictures Made”: 174, “Position”: “Multimedia programmer” }, { “Name”: “Anthony Young”, “New Sales”: 100, “Salary”: 35400, “ID”: 8, “Dog Pictures Made”: 219, “Position”: “Chartered legal executive (England and Wales)” }, { “Name”: “Mr. Steven Perkins Jr.”, “New Sales”: 190, “Salary”: 47000, “ID”: 9, “Dog Pictures Made”: 132, “Position”: “Bonds trader” }, { “Name”: “Amanda Miles”, “New Sales”: 160, “Salary”: 25800, “ID”: 10, “Dog Pictures Made”: 240, “Position”: “Data scientist” }, }]

Close

BlockPy: #495) Correlating Work The employees of your company (which still makes funny dog pictures) are upset because they believe that their salaries are not reflecting their work. The attached file ( “employees.json” ) has salary data for your employees as a list of dictionaries. Create a visualization that shows the relationship between “Salary” and “Dog Pictures Made” . Remember that to do this, you will need to open the JSON file, convert the list of dictionaries to two lists of numbers, and then plot those numbers. Make sure you give meaningful labels to the axes and a title. Afterwards, reflect on whether you think the employees are being paid in accordance witlh their productivity Files Available employees.json Console Feedback Instructor Feedback You cannot use the builtin function max Incorrect Answer (builtin_use) Blocks SplitTxt ResetUploadHistory Run import json 3 with open(‘D:/Chegging/empl.json) as data file: 4 5 data – json.load(data_file) max_item-max (data, key-lambda item:item[‘New Sales’]) 9 print(“Employee with highest sale is: “) 10 11 print(max_item ‘Name’]) BlockPy: #492) Salary Distributions The company you created (which makes funny dog pictures) is having a meeting to discuss employee salaries. The attached file “employees.json” ) has salary data for your employees as a list of dictionaries. Create a visualization that shows the distribution of the “Salary” field. Remember that to do this, you will need to open the JSON file, load the data, convert the list of dictionaries to a list of numbers, and then plot those numbers. Make sure you give meaningful labels to the axes and a title You may notice that the x-values are so big, they spill into each other. If you would like, you may divide each salary by 1000 (Make sure that your x-axis label reflects that the salaries are then in thousands). Files Available employees.json Show transcribed image text BlockPy: #495) Correlating Work The employees of your company (which still makes funny dog pictures) are upset because they believe that their salaries are not reflecting their work. The attached file ( “employees.json” ) has salary data for your employees as a list of dictionaries. Create a visualization that shows the relationship between “Salary” and “Dog Pictures Made” . Remember that to do this, you will need to open the JSON file, convert the list of dictionaries to two lists of numbers, and then plot those numbers. Make sure you give meaningful labels to the axes and a title. Afterwards, reflect on whether you think the employees are being paid in accordance witlh their productivity Files Available employees.json Console Feedback Instructor Feedback You cannot use the builtin function max Incorrect Answer (builtin_use) Blocks SplitTxt ResetUploadHistory Run import json 3 with open(‘D:/Chegging/empl.json) as data file: 4 5 data – json.load(data_file) max_item-max (data, key-lambda item:item[‘New Sales’]) 9 print(“Employee with highest sale is: “) 10 11 print(max_item ‘Name’])
BlockPy: #492) Salary Distributions The company you created (which makes funny dog pictures) is having a meeting to discuss employee salaries. The attached file “employees.json” ) has salary data for your employees as a list of dictionaries. Create a visualization that shows the distribution of the “Salary” field. Remember that to do this, you will need to open the JSON file, load the data, convert the list of dictionaries to a list of numbers, and then plot those numbers. Make sure you give meaningful labels to the axes and a title You may notice that the x-values are so big, they spill into each other. If you would like, you may divide each salary by 1000 (Make sure that your x-axis label reflects that the salaries are then in thousands). Files Available employees.json

Expert Answer


Answer to Do not use the built in max function please Employees.json is the same file for both questions, here is a shortened vers… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *