Question: Using python code generate a csv file with all the…

Question Answered step-by-step Question: Using python code generate a csv file with all the… Question: Using python code generate a csv file with all the contents extracted from https://data.lacity.org/resource/2nrs-mtv8.json This is my code so farimport requestsimport jsonfrom bs4 import BeautifulSoupr = requests.get(‘https://data.lacity.org/resource/2nrs-mtv8.json’)r.content js = r.json()js = json.loads(r.content)json_formatted_str = json.dumps(js, indent=2)print(json_formatted_str) Image transcription textIn [50]: import json js = r. json() js = json. loads (r. content) json_formatted_str = json. dumps(js, indent=2) print(json_formatted_str) “dr no”: “010304468”, “date_rotd”:”2020-01-08TO0: 00:00. 000″, “date_occ”: “2020-01-08700 : 00:00…. Show more… Show more  Computer Science Engineering & Technology Python Programming DSCI MISC Share QuestionEmailCopy link Comments (0)