Quantcast
Viewing all articles
Browse latest Browse all 5

Answer by Anabel Montero Posada for ValueError: Shape of passed values is (1, 6), indices imply (6, 6)

Change this:

pd.DataFrame(regr.coef_, df_coeficientes.columns, columns=['Coeffecient'])

to this:

pd.DataFrame(regr.coef_[0], df_coeficientes.columns, columns=['Coeffecient'])


Viewing all articles
Browse latest Browse all 5

Trending Articles