Quantcast
Channel: ValueError: Shape of passed values is (1, 6), indices imply (6, 6) - Stack Overflow
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)

$
0
0

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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>