pd.crosstab(index=cast['year'], columns=cast['type']).plot(kind='area');
{'avg_line_length': 72.0, 'max_line_length': 72, 'alphanum_fraction': 0.6944444444444444, 'licenses': ['BSD-3-Clause'], 'repository_name': 'rth/data-science-workshop-2021', 'path': 'Day_1_Scientific_Python/pandas/_solutions/pandas_07_reshaping_data9.py', 'size': 72, 'lang': 'Python'}