Top "Valueerror" questions

Must be used only when 'ValueError' is raised.

Python: ValueError: setting an array element with a sequence

I'm trying to use scikit-learn to do some ML. I am using the preprocessing module to prep my data. The …

python arrays numpy scikit-learn valueerror
ValueError: operands could not be broadcast together with shapes (5,) (30,)

I am trying to merge arrays like this: If: a = [1.2, 1, 3, 4] b = [0.0 , 0.0] c = [0.0 , 0.0] a = a + b + c Then the result should …

python arrays matplotlib valueerror
Google Colab-ValueError: Mountpoint must be in a directory that exists

I want to mount google drive on google Colab and I am using this command to mount the drive from …

python google-colaboratory valueerror
How do I fix invalid literal for int() with base 10 error in pandas

This is the error that is showing up whenever i try to convert the dataframe to int. ("invalid literal for …

python-2.7 pandas int jupyter-notebook valueerror
Simultaneously melt multiple columns in Python Pandas

wondering if pd.melt supports melting multiple columns. I have the below examples trying to have the value_vars as …

pandas melt valueerror
ValueError: need at least one array to concatenate

I am having issues with ValueError: need at least one array to concatenate Below is the whole error message. Training …

python valueerror
sklearn-LinearRegression: could not convert string to float: '--'

I am trying to use a LinearRegression from sklearn and I am getting a 'Could not convert a string to …

python pandas scikit-learn valueerror
ValueError: malformed node or string

Why do I get this error message : ValueError: malformed node or string when I pass data in the below format …

python valueerror malformed
Python - ValueError: Cannot index with vector containing NA / NaN values

I'm trying to get the average price of products containing any substrings from a wordlist from a dataframe. I've been …

python python-3.x pandas dataframe valueerror
Scikit-learn - ValueError: Input contains NaN, infinity or a value too large for dtype('float32') with Random Forest

First, I have checked the different posts concerning this error and none of them can solve my issue. So I …

python scikit-learn random-forest valueerror