Question 8
Consider the following code:
from sklearn.preprocessing import PolynomialFeaturesimport numpy as np
X = np.array([[1], [2], [3]])poly = PolynomialFeatures(degree=2)X_poly = poly.fit_transform(X)print(X_poly)What will be the output of the above code?