Question: This is my code so far Write a function print_stats (file_name: str) that reads the JSON file with the indicated file name, computes the required

This is my code so far Write a function print_stats (file_name: str)This is my code so far that reads the JSON file with the indicated file name, computes therequired statistics, and prints them. The output of the program must look

Write a function print_stats (file_name: str) that reads the JSON file with the indicated file name, computes the required statistics, and prints them. The output of the program must look as in the following Figure. Complete it and upload it to Coding Rooms. Data records (each dictionary entry is a record) often come polluted with missing data and outliers. The field population has some missing data, recorded as -1; it also contains incorrect data, e.g., cities with a very small population. To produce nonskewed statistics, you must filter only cities with more than 10,000 people. Save the functions read_data, stats, and print_stats in the file population. json. Upload the contents of this file to Coding Rooms

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!