Quantcast
Channel: ValueError: Shape of passed values is (1, 6), indices imply (6, 6) - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by Anabel Montero Posada for ValueError: Shape of passed values is (1,...

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

View Article


Answer by DevLoverUmar for ValueError: Shape of passed values is (1, 6),...

I was facing the similar error with the messageShape of passed values is (68, 1783), indices imply (68, 68) in dataframeAnd As per my guess, I fed the transpose of ndarray of data and that solved the...

View Article


Answer by Candice Withrow for ValueError: Shape of passed values is (1, 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...

View Article

Answer by rafaelc for ValueError: Shape of passed values is (1, 6), indices...

Simply changecol = pd.DataFrame(data, columns=['runs','balls', 'wickets', 'ground_average', 'pp_balls_left', 'total_overs'])forcol = pd.DataFrame([data], columns=['runs','balls', 'wickets',...

View Article

ValueError: Shape of passed values is (1, 6), indices imply (6, 6)

I am passing a list from flask function to another function, and getting this value error.My code at sending end:@app.route('/process', methods=['POST'])def process(): name = request.form['name']...

View Article

Browsing latest articles
Browse All 5 View Live


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