Spyder: workspace does not support object arrays

Created on 17 Feb 2015  Â·  10Comments  Â·  Source: spyder-ide/spyder

_From [email protected] on 2010-08-13T10:38:33Z_

It would be useful if numpy object arrays could be viewed. For example, in the workspace a list of datetime.datetime objects can be viewed, although the same list as an array cannot be viewed.

_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=293_

1 star Bug

Most helpful comment

:::[Solved]-Example for Testing:::

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)

All 10 comments

_From ccordoba12 on 2011-05-02T10:51:29Z_

This is no longer an issue in Spyder 2. The variable explorer shows numpy arrays just fine

Status: WontFix

screenshot from 2018-02-15 18-35-26
The current version is Spyder 2.3.8
The Scientific PYthon Development EnviRonment

Object arrays are currently not supported. Should I upgrade the spyder version?

No, sorry, they are still not supported.

import pandas as pd
dataset = pd.read_csv('Data.csv')
X=dataset.iloc[: , :-1].values

I had the same problem in spyder 3.2.6
18
but in spyder 3.1.2
it's worked but yet not supported
19

Will it be resolved ?
On Tue, 27 Feb 2018 at 1:19 PM, farzadhallaji notifications@github.com
wrote:

i had the same problem in spyder 3.2.6
[image: screenshot from 2018-02-27 11-18-54]
https://user-images.githubusercontent.com/16305486/36716583-1052ed5e-1bb0-11e8-85f6-9c8642b42eba.png

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/293#issuecomment-368776707,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARofNNudfBgabtX0nveCSEYEo4Wydd_5ks5tY7OhgaJpZM4DhOpX
.

I found that It's Work but Variable Explorer don't show this correctly
20

I have the same issue.. even though it's displaying correctly in console variable explorer is something we need to look for. I am using spyder 3.2.6.

:::[Solved]-Example for Testing:::

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)

It will be resolved after you convert the X's data and y's data into the same datatypes other than object array that contain the different types of data then you would be able to access it.
catagoricaldata

Same problem

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spyder-bot picture spyder-bot  Â·  3Comments

gabrielclow picture gabrielclow  Â·  3Comments

keith-golden picture keith-golden  Â·  3Comments

ok97465 picture ok97465  Â·  3Comments

goanpeca picture goanpeca  Â·  3Comments