Spyder: Browse dataframe within variable explorer

Created on 5 Jan 2018  路  1Comment  路  Source: spyder-ide/spyder

Description

What steps will reproduce the problem?

  1. Created Dataframe
df = pd.DataFrame({'Col1':[1,2,3],'col2':['a','b','c']})
  1. Double click variable in the variable explorer
  2. Double click the attribute with type core.frame.DataFrame

What is the expected output? What do you see instead?
I would expect to view a tabular representation of the data winthin the dataframe. Instead I see a tabular wiew of the properties of a dataframe:

image

Please provide any additional information below

File "C:\Anaconda2\envs\method_comparisonlib\site-packages\spyder\widgets\variableexplorer\collectionseditor.py", line 513, in createEditor
readonly=readonly)
File "C:\Anaconda2\envs\method_comparisonlib\site-packages\spyder\widgets\variableexplorer\collectionseditor.py", line 1320, in setup
readonly=readonly, remote=remote)
File "C:\Anaconda2\envs\method_comparisonlib\site-packages\spyder\widgets\variableexplorer\collectionseditor.py", line 1272, in __init__
title)
File "C:\Anaconda2\envs\method_comparisonlib\site-packages\spyder\widgets\variableexplorer\collectionseditor.py", line 1149, in __init__
minmax=minmax)
File "C:\Anaconda2\envs\method_comparisonlib\site-packages\spyder\widgets\variableexplorer\collectionseditor.py", line 110, in __init__
self.set_data(data)
File "C:\Anaconda2\envs\method_comparisonlib\site-packages\spyder\widgets\variableexplorer\collectionseditor.py", line 158, in set_data
self.set_size_and_type()
File "C:\Anaconda2\envs\method_comparisonlib\site-packages\spyder\widgets\variableexplorer\collectionseditor.py", line 178, in set_size_and_type
for index in range(start, stop) ]
File "C:\Anaconda2\envs\method_comparisonlib\site-packages\spyder\widgets\variableexplorer\collectionseditor.py", line 78, in __getitem__
return getattr(self.__obj__, key)
File "C:\Anaconda2\envs\method_comparison\Lib\site-packagespandas\core\generic.py", line 206, in _constructor_sliced
raise AbstractMethodError(self)
pandas.core.common.AbstractMethodError: This method must be defined in the concrete class of Series

Version and main components

  • Spyder Version: 3.2.5
  • Python Version: 2.7.14
  • Qt Versions: 5.6.2, PyQt5 5.6 on Windows

Dependencies

pyflakes >=0.5.0  :  1.6.0 (OK)
pycodestyle >=2.3 :  2.3.1 (OK)
pygments >=2.0    :  2.2.0 (OK)
pandas >=0.13.1   :  None (OK)
numpy >=1.7       :  1.13.3 (OK)
sphinx >=0.6.6    :  1.6.3 (OK)
rope >=0.9.4      :  0.10.7 (OK)
jedi >=0.9.0      :  0.11.0 (OK)
nbconvert >=4.0   :  5.3.1 (OK)
sympy >=0.7.3     :  None (NOK)
cython >=0.21     :  None (NOK)
qtconsole >=4.2.0 :  4.3.1 (OK)
IPython >=4.0;<6.0:  5.4.1 (OK)
pylint >=0.25     :  1.7.4 (OK)

Invalid

Most helpful comment

A simple restart of spyder fixed the issue.

>All comments

A simple restart of spyder fixed the issue.

Was this page helpful?
0 / 5 - 0 ratings