python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why is the python debugger throwing a ValueError before reaching my script?
When I try to debug a python script in the Spyder IDE using an exception is raised long before the debugger gets to my script. In spyderpdb.py near line 765 I get a ValueError reported. The full tra...
RHP
Votes: 0
Answers: 1
Cannot install lmfit, "Command returned non-zero exit status 1"
I'm trying to install the lmfit package but I keep getting the same error:
Command '['C:\\Users\\me\\AppData\\Local\\Programs\\Spyder\\Python\\python.exe', '-m', 'pip', '--disable-pip-version-check', ...
Andrea Arcobaleno
Votes: 0
Answers: 1
After executing the last line i get following error: ValueError: y should be a 1d array, got an array of shape (4457, 2) instead
y = pd.get_dummies(messages['label'])
y = y.iloc[:,1].values
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.20,random_stat...
RUPENDRA S. KHANGAROT
Votes: 0
Answers: 1
Spyder: Is there any way to leave the "view background colour" in the variable explorer unchecked by default?
For personal preference, I prefer viewing my dataframes without the colouring scheme:
There is an option to untick the 'background colour' option, but every time I open up another numpy/pandas array ...
GildedCrowEscapee
Votes: 0
Answers: 1