Spyder Python "object arrays are currently not supported"

spyder python tutorial
spyder python online
spyder python install
spyder python tutorial pdf
spyder python interpreter
spyder python gui
spyder python documentation pdf
update spyder

I have a problem in Anaconda Spyder (Python).

Object type array can not be seen under Windows 10 in the variable explorer. If I click on X or Y, I see an error:

object arrays are currently not supported.

I have Win 10 Home 64bit (i7-4710HQ) and Python 3.5.2 | Anaconda 4.2.0 (64-bit) [MSC v.1900 64 bit (AMD64)]

(Spyder developer here) Support for object arrays will be added in Spyder 4, to be released in 2019.

Spyder Website, Spyder is a powerful scientific environment written in Python, for Python, and designed by and for scientists, engineers and data analysts. It offers a unique  Spyder is a powerful scientific environment written in Python, for Python, and designed by and for scientists, engineers and data analysts.

A good example is here

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
dataset = pd.read_csv('Salary_Data.csv') #in your case right name of your file
X=dataset.iloc[:,:-1].values   #this will convert dataframe to object
df = pd.DataFrame(X)

You can view data in dataframe this converts arrray to dataframe .

And the variable explorer accepts the dataframe. The above is correct and checked code

Spyder (software), Spyder is an open source cross-platform integrated development environment (​IDE) for scientific programming in the Python language. Spyder integrates with a​  Spyder is a powerful scientific environment written in Python, for Python, and designed by and for scientists, engineers and data analysts. It offers a unique combination of the advanced editing, analysis, debugging, and profiling functionality of a comprehensive development tool with the data exploration, interactive execution, deep inspection, and beautiful visualization capabilities of a scientific package.

I used the same without dataFrame and .values. It worked for me.

x = dataset.iloc[:, :-1]
y = dataset.iloc[:,3]

spyder · PyPI, Spyder is a powerful scientific environment written in Python, for Python, and designed by and for scientists, engineers and data analysts. It offers a unique  Spyder is a powerful scientific environment written in Python, for Python, and designed by and for scientists, engineers and data analysts.

Solution: Downgrade the version of spyder to 3.2.0

You can do this by going to anaconda-navigator.

If you are following the Udemy Course on Machine Learning, probably the instructor is using an older version of spyder and it is working for him. In the newer versions like 3.2.8, it is not working but can be incorporated in the coming versions in the future.

Python Spyder IDE, README.md. Spyder — The Scientific Python Development Environment. Copyright © 2009–2019 Spyder Project Contributors. Some source files and icons may  Spyder is a powerful scientific environment written in Python, for Python, and designed by and for scientists, engineers and data analysts. It offers a unique combination of the advanced editing, analysis, debugging, and profiling functionality of a comprehensive development tool with the data exploration, interactive execution, deep inspection, and beautiful visualization capabilities of a scientific package.

I have analyzed the code until the point that could be failing for you.

It seems that array editor of Spyder doesn't support showing arrays of mixed types (object arrays).

Here you can see the supported formats.

Something was confusing for me the first time that I used it: you receive the same editor when you click on a Dataset that when you click on an array variable.

In the case of a variable of type array, you receive an ArrayEditor widget. I think that call is made here.

But in the case of a variable of type DataFrame, you receive a DataFrameEditor. I think that call is made here

The problem is that both widgets look more or less the same, so one tend to think that receive the same result in both cases, but the DataFrameEditor allows mixed types and the ArrayEditor not.

You can try to inspect the array variables in the IPython console until the support is finally released in Spyder for the proper Widgets.

spyder-ide/spyder: Official repository for Spyder - The , Spyder IDE is a tool written in Python by and for professionals. Learn how to install it on your computer (Linux, Windows) and read expert tips to  Spyder is a powerful scientific environment written in Python, for Python, and designed by and for scientists, engineers and data analysts. It features a unique combination of the advanced editing, analysis, debugging and profiling functionality of a comprehensive development tool with the data exploration, interactive execution,

How to Install the Python Spyder IDE and , Spyder is a powerful scientific environment written in Python, for Python, and designed by and for scientists, engineers and data analysts. It features a unique  The basic dependencies to run Spyder are: Python 3.5+ or 2.7: The core language Spyder is written in and for. PyQt5 5.6+: Python bindings for Qt, used for Spyder's GUI.

Spyder :: Anaconda Cloud, Spyder, the Scientific Python Development Environment, is a free integrated development environment (IDE) that is included with Anaconda. It includes editing,  It comes with Spyder and all its dependencies, along with the most important Python scientific libraries (i.e. Numpy, Pandas, Matplotlib, IPython, etc) in a single, easy to use environment. We also support pip, but please be aware that pip installations are for advanced users with good knowledge of all Spyder dependencies.

Spyder, Spyder is short for "Scientific PYthon Development EnviRonment." It's intended for use as a workbench for scientific computing with Python, and  I would like to know if there is a way to run python scripts in spyder-ide using windows cmd or PowerShell instead of IPython console. Ipython sometimes works differently than if the script is run in cmd specially for plotting packages like matplotlib, etc. I am using Spyder latest version. Regards

Comments
  • this is not a problem with anaconda or windows.. the spyder editor simply does not support all datatypes in the variable explorer. under the hood pandas uses numpy arrays which are supported by spyder only if the datatype is a numeric type. it doesn't mean you can't use them, only you can't view them with the variable explorer
  • What's unclear about that error message?
  • Thank you very much for your answer. During the python course on udemy.com - Machine Learning A-Z ™ I noticed that other people (under MAC's) in Spyder can do it. The instructor thinks it should relate with Win 10. I'm confused:(
  • I have the same problem and I am on windows 7 (I am taking the same course on udemy).. I think it has to do with the current version of spyder
  • I have the same problem. And I am sure that it worked until the last week. The only change that I made is to allow the software to send anonymous usage data, but I think that is not related.
  • But for the udemy course followers, the tutor actually has support for it. Try this stackoverflow.com/a/49347986/4010017
  • do we have a roadmap? we are in 2019 now
  • Spyder 4 will be released (most probably) in September 2019.
  • from which version this functionality has been added? It doesn't work on spyder 3.3 (Ubuntu 18.04 LTS)
  • Hi @ashishmalgawa this is not a functionality addition. answer doesn't relate to os you use. The above is just a method to see it in dataframe .i.e incase you want to see in variable explorer .And code works fine for me
  • But for the udemy course followers, the tutor actually has support for it without manipulating the variables with additional computation. Try this stackoverflow.com/a/49347986/4010017
  • Helpful in my case
  • the exact solution for 3.2.8 version of Spider if you're following Udemy Course
  • Note that my references were to the code stand in the moment you'd made the question. The question was updated reflecting another stack trace, but the problem might be the same.