Question 12 - How to generate pandas Dataframe from coefs?

I successfully completed Question 11, generated the list of all the feature_names but am unable to convert it into pandas DataFrame.

Getting the following error:

ValueError: could not broadcast input array from shape (106,) into shape (1,)

My data is available in coefs (a n-dimensional array) but unable to convert it into dataframe for analysis and identification of important features.

Request help.
Thanks.

If coef_ is a 1-dimensional array, you should use a pandas Series.