Select_k_best error

I am unable to understand why the grader gave me “selector = SelectKBest(score_func=f_regression, k=8)” wrong stating the following. Can someone please help?

Failed test case: select_k_best has incorrect type.
Expected:
<class 'sklearn.feature_selection._univariate_selection.SelectKBest'>,
but got:
<class 'int'>.

Failed test case: X_new has incorrect type.
Expected:
<class 'numpy.ndarray'>,
but got:
<class 'sklearn.feature_selection._univariate_selection.SelectKBest'>.

Hello @Vijay_Rajan
What was your input data?
You can try to convert them to a numpy array using np.array()
Example:

selector = SelectKBest(score_func=f_regression, k=8)
X_new = selector.fit_transform(X, y)
X_new = np.array(X_new)