Now that we have all the desired features in a single DataFrame, let's convert them into a form that is more usable. More specifically, these are the transformations we will be looking to perform:
- Convert keywords into a list of strings where each string is a keyword (similar to genres). We will include only the top three keywords. Therefore, this list can have a maximum of three elements.
- Convert cast into a list of strings where each string is a star. Like keywords, we will only include the top three stars in our cast.
- Convert crew into director. In other words, we will extract only the director of the movie and ignore all other crew members.
The first step is to convert these stringified objects into ...