Question
write a python function that will clean the following data: { 372195: { type: Movie, title: Child's Play, director: Tom Holland, cast: Catherine Hicks, Alex
write a python function that will clean the following data:
{ "372195": { "type": "Movie", "title": "Child's Play", "director": "Tom Holland", "cast": "Catherine Hicks, Alex Vincent, Brad Dourif, Chris Sarandon, Dinah Manoff, Tommy Swerdlow, Jack Colvin, Neil Giuntoli, Juan Ram\u00edrez, Alan Wilder", "country": "United States", "date_added": "December 31, 2019", "release_year": 1988, "rating": "R", "duration": "87 min", "listed_in": "Cult Movies, Horror Movies", "description": "When a rash of murders unfolds, 6-year-old Andy knows that his toy doll Chucky is the killer, but neither his mom nor the cops believe him." }, "880640": { "type": "Movie", "title": "Pulp Fiction", "director": "Quentin Tarantino", "cast": "John Travolta, Samuel L. Jackson, Uma Thurman, Harvey Keitel, Tim Roth, Amanda Plummer, Maria de Medeiros, Ving Rhames, Eric Stoltz, Rosanna Arquette, Christopher Walken, Bruce Willis", "country": "United States", "date_added": "January 1, 2019", "release_year": 1994, "rating": "R", "duration": "154 min", "listed_in": "Classic Movies, Cult Movies, Dramas", "description": "This stylized crime caper weaves together stories featuring a burger-loving hit man, his philosophical partner and a washed-up boxer." },...
into looking like this:
[ [372195, 'Movie', "Child's Play", 'Tom Holland', 'Catherine Hicks, Alex Vincent, Brad Dourif, Chris Sarandon, Dinah Manoff, Tommy Swerdlow, Jack Colvin, Neil Giuntoli, Juan Ramrez, Alan Wilder', 'United States', '12-31-2019', 1988, 'Cult Movies, Horror Movies', 'When a rash of murders unfolds, 6-year-old Andy knows that his toy doll Chucky is the killer, but neither his mom nor the cops believe him.'], [880640, 'Movie', 'Pulp Fiction', 'Quentin Tarantino', 'John Travolta, Samuel L. Jackson, Uma Thurman, Harvey Keitel, Tim Roth, Amanda Plummer, Maria de Medeiros, Ving Rhames, Eric Stoltz, Rosanna Arquette, Christopher Walken, Bruce Willis', 'United States', '01-01-2019', 1994, 'Classic Movies, Cult Movies, Dramas', 'This stylized crime caper weaves together stories featuring a burger-loving hit man, his philosophical partner and a washed-up boxer.'], ... ]
where the id is an integer
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started