You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to open a ``pandas.DateOffset object in the Variable Explorer, a ValueError is raised. We may not officially support all pandas (or arbitrary) datatypes until Spyder 4, but this should at least be handled more gracefully.
What steps will reproduce the problem?
Create a DateOffset object
test_dateoffset=pd.DateOffset()
Attempt to open it in a CollecitonsEditor by double clicking it in Variable Explorer.
The error then occurs.
Traceback
Opening DateOffset error:
File "C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\spyder\spyder\widgets\variableexplorer\collectionseditor.py", line 528, in createEditor
readonly=readonly)
File "C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\spyder\spyder\widgets\variableexplorer\collectionseditor.py", line 1339, in setup
remote=remote)
File "C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\spyder\spyder\widgets\variableexplorer\collectionseditor.py", line 1287, in __init__
title)
File "C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\spyder\spyder\widgets\variableexplorer\collectionseditor.py", line 1164, in __init__
minmax=minmax)
File "C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\spyder\spyder\widgets\variableexplorer\collectionseditor.py", line 121, in __init__self.set_data(data)
File "C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\spyder\spyder\widgets\variableexplorer\collectionseditor.py", line 169, in set_dataself.set_size_and_type()
File "C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\spyder\spyder\widgets\variableexplorer\collectionseditor.py", line 189, in set_size_and_typefor index inrange(start, stop) ]
File "C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\spyder\spyder\widgets\variableexplorer\collectionseditor.py", line 189, in <listcomp>for index inrange(start, stop) ]
File "C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\spyder\spyder\widgets\variableexplorer\collectionseditor.py", line 86, in __getitem__
attribute_toreturn =getattr(self.__obj__, key)
File "C:\Anaconda3\envs\spyder-dev\lib\site-packages\pandas\tseries\offsets.py", line 530, in nanosraiseValueError("{name} is a non-fixed frequency".format(name=self))
ValueError: <DateOffset> is a non-fixed frequency
Problem Description
When attempting to open a ``pandas.DateOffset object in the Variable Explorer, a ValueError is raised. We may not officially support all pandas (or arbitrary) datatypes until Spyder 4, but this should at least be handled more gracefully.
What steps will reproduce the problem?
Attempt to open it in a CollecitonsEditor by double clicking it in Variable Explorer.
The error then occurs.
Traceback
Opening
DateOffset
error:Package Versions
Dependencies
The text was updated successfully, but these errors were encountered: