- Read in the altered movie dataset, and output the first five rows:
>>> movie = pd.read_csv('data/movie_altered.csv')>>> movie.head()
- This dataset contains information on the movie itself, the director, and actors. These three entities can be considered observational units. Before we start, let's use the insert method to create a column to uniquely identify each movie:
>>> movie.insert(0, 'id', np.arange(len(movie)))>>> movie.head()
- Let's attempt to tidy this dataset with the wide_to_long function to put all the actors in ...