Question 24
What will be the output of the following code ?
data = [['apple', 120], ['apple', 125], ['grapes',120]]
from sklearn.preprocessing import OneHotEncoderohe = OneHotEncoder(sparse_output=False)ohe.fit(data)print(ohe.transform(data).shape[1])