I renamed columns df.columns=['list of columns']
I then went to the variable explorer and clicked on the dataframe and received the following error.
Spyder Internal Console
This console is used to report application
internal errors and to inspect Spyder
internals with the following commands:
Please don't use it to run your code
>>> Traceback (most recent call last):
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\spyderlib\widgets\dicteditor.py", line 422, in createEditor
if not editor.setup_and_check(value):
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\spyderlib\widgets\dataframeeditor.py", line 432, in setup_and_check
self.dataModel = DataFrameModel(data, parent=self)
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\spyderlib\widgets\dataframeeditor.py", line 82, in __init__
self.max_min_col_update()
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\spyderlib\widgets\dataframeeditor.py", line 104, in max_min_col_update
df_abs = self.df[self.complex_intran].abs()
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\pandas\core\frame.py", line 1674, in __getitem__
return self._getitem_frame(key)
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\pandas\core\frame.py", line 1747, in _getitem_frame
return self.where(key)
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\pandas\core\generic.py", line 3244, in where
try_cast=try_cast)
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\pandas\core\internals.py", line 2210, in where
return self.apply('where', **kwargs)
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\pandas\core\internals.py", line 2190, in apply
copy=align_copy)
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\pandas\core\frame.py", line 2297, in reindex_axis
fill_value=fill_value)
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\pandas\core\generic.py", line 1707, in reindex_axis
limit=limit, copy=copy)
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\pandas\core\generic.py", line 1731, in _reindex_with_indexers
copy=copy)
File "C:\Users\mwallace\AppData\Local\Continuum\Anaconda\lib\site-packages\pandas\core\internals.py", line 2856, in reindex_indexer
raise ValueError("cannot reindex from a duplicate axis")
ValueError: cannot reindex from a duplicate axis