Quantcast
Viewing latest article 3
Browse Latest Browse All 5

Answer by Candice Withrow for ValueError: Shape of passed values is (1, 6), indices imply (6, 6)

I was having similar issues with making a dataframe from regressor coefficients (regressor.coeff_), and brackets gave another error asking for 2-d input. If you get this error, try appending the input array with [0] so it pulls the values out.ex:data[0]


Viewing latest article 3
Browse Latest Browse All 5

Trending Articles



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