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