Spyder: dataset not opened in variable explorer

Created on 16 Sep 2020  路  5Comments  路  Source: spyder-ide/spyder

Description

What steps will reproduce the problem?

The dataset in not opened in the dataframe of the variable explorer.

Traceback

  File "C:\Users\Elango\anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\collectionsdelegate.py", line 159, in createEditor
    if not editor.setup_and_check(value, title=key):
  File "C:\Users\Elango\anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\dataframeeditor.py", line 901, in setup_and_check
    self.dataModel = DataFrameModel(data, parent=self)
  File "C:\Users\Elango\anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\dataframeeditor.py", line 126, in __init__
    self.df_index = dataFrame.index.tolist()
  File "C:\Users\Elango\anaconda3\lib\site-packages\pandas\core\generic.py", line 5270, in __getattr__

  File "pandas\_libs\properties.pyx", line 63, in pandas._libs.properties.AxisProperty.__get__
  File "C:\Users\Elango\anaconda3\lib\site-packages\pandas\core\generic.py", line 5270, in __getattr__

AttributeError: 'DataFrame' object has no attribute '_data'

Versions

  • Spyder version: 4.0.1
  • Python version: 3.7.6
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Windows 10

Dependencies

atomicwrites >=1.2.0         :  1.3.0 (OK)
chardet >=2.0.0              :  3.0.4 (OK)
cloudpickle >=0.5.0          :  1.3.0 (OK)
diff_match_patch >=20181111  :  20181111 (OK)
intervaltree                 :  None (OK)
IPython >=4.0                :  7.12.0 (OK)
jedi =0.14.1                 :  0.14.1 (OK)
nbconvert >=4.0              :  5.6.1 (OK)
numpydoc >=0.6.0             :  0.9.2 (OK)
pexpect >=4.4.0              :  4.8.0 (OK)
pickleshare >=0.4            :  0.7.5 (OK)
psutil >=0.3                 :  5.6.7 (OK)
pygments >=2.0               :  2.5.2 (OK)
pylint >=0.25                :  2.4.4 (OK)
pyls >=0.31.2;<0.32.0        :  0.31.7 (OK)
zmq >=17                     :  18.1.1 (OK)
qdarkstyle >=2.7             :  2.8 (OK)
qtawesome >=0.5.7            :  0.6.1 (OK)
qtconsole >=4.6.0            :  4.6.0 (OK)
qtpy >=1.5.0                 :  1.9.0 (OK)
rtree >=0.8.3                :  0.9.3 (OK)
sphinx >=0.6.6               :  2.4.0 (OK)
spyder_kernels >=1.8.1;<2.0.0:  1.8.1 (OK)
watchdog                     :  None (OK)
cython >=0.21                :  0.29.15 (OK)
matplotlib >=2.0.0           :  3.1.3 (OK)
numpy >=1.7                  :  1.18.0 (OK)
pandas >=0.13.1              :  1.0.3 (OK)
scipy >=0.17.0               :  1.4.1 (OK)
sympy >=0.7.3                :  1.5.1 (OK)
NoResponse

Most helpful comment

updating pandas worked for me

All 5 comments

Hi @gelango65 could you provide some example code that triggers this error? Also, could you try to update to our latest version (4.1.5) an check again? Thanks!

Note: Seems like this kind of error was posted before in #4999 but no further way to reproduce it was given :/

I'm facing a similar problem here

Note: maybe updating pandas could help

Closing do to lack of response. If more info is available/a way to reproduce this is given please post it here and we will reopen it :)

updating pandas worked for me

Was this page helpful?
0 / 5 - 0 ratings