These are chat archives for spyder-ide/public
are you using spyder by itself or in combination with anaconda
I use it in Anaconda, but I know some of the other developers use it with
virtualenv. There's not really such a thing as using Spyder "by itself", since both it and the scientific Python its used for require an environment with the appropriate packages to be useful, whether that's Anaconda, WinPython, Fink/Macports/Homebrew, Linux distro packages, manual pip+virtualenv/venv, etc.
And another question, did you ever worked by chance with the following library
num_cols = len(A) if A else 0is at the very least not idomatic/Pythonic python; it may be complaining about that. You also could be overriding something else named
shape, or there could be another typo or Python 2-specific quirk I'm missing (I've used Python 3 as long as I've done serious data science, and never bothered with 2).
An error being reported there suggests there may be a problem with your return statement on the previous line, like missing a close paren or something.