I have the Dataframe column with the following category:
data = {'People': ['John','Mary','Andy','April'],
'Class': ['Math, Science','English, Math, Science','Math, Science','Science, English, Math']}
df = pd.DataFrame(data, columns = ['People', 'Class'])
How can I create the new columns and transform the Dataframe as shown below:
> | People | Math | Science | English |
> -------------------------------------
> | John | Math | Science | |
> | Mary | Math | Science | English |
> | Andy | Math | Science | |
> | April | Math | Science | English |