Error when trying to inspect a 'NaT' in Variable Explorer
See original GitHub issueDescription
What steps will reproduce the problem?
In [135]: x = df[‘remove_time’][2]
In [136]: pd.Timestamp.max Out[136]: Timestamp(‘2262-04-11 23:47:16.854775807’)
In [137]: print(df[‘remove_time’][2]) NaT
In [138]: x = df[‘remove_time’][2]
In [139]:
Then, I click the ‘x’ in Variable Explorer.
Traceback
File "/home/hechu/anaconda3/lib/python3.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 615, in setEditorData
editor.setDateTime(QDateTime(value.date(), value.time()))
File "pandas/_libs/tslibs/nattype.pyx", line 59, in pandas._libs.tslibs.nattype._make_error_func.f
ValueError: NaTType does not support time
Versions
- Spyder version: 3.3.1
- Python version: 3.7.0
- Qt version: 5.9.6
- PyQt5 version: 5.9.2
- Operating System: Linux 4.15.0-39-generic
Dependencies
pyflakes >=0.6.0 : 2.0.0 (OK)
pycodestyle >=2.3 : 2.4.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
sphinx >=0.6.6 : 1.8.2 (OK)
rope >=0.9.4 : 0.11.0 (OK)
jedi >=0.9.0 : 0.13.1 (OK)
psutil >=0.3 : 5.4.8 (OK)
nbconvert >=4.0 : 5.3.1 (OK)
pandas >=0.13.1 : 0.23.4 (OK)
numpy >=1.7 : 1.15.1 (OK)
sympy >=0.7.3 : 1.3 (OK)
cython >=0.21 : 0.29 (OK)
qtconsole >=4.2.0 : 4.4.2 (OK)
IPython >=4.0 : 7.1.1 (OK)
matplotlib >=2.0.0: 2.2.3 (OK)
pylint >=0.25 : 2.1.1 (OK)
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Spyder error: 'int' object is not callable but no error in different ...
This error occurs when you have an object that is an integer number, but your code tries to use it as if it...
Read more >Troubleshoot NAT gateways - Amazon Virtual Private Cloud
When you try to allocate an Elastic IP address for your public NAT gateway, you get the following error. The maximum number of...
Read more >Variable Explorer — Spyder 5 documentation
The Variable Explorer allows you to interactively browse and manage the objects generated running your code.
Read more >Troubleshoot Dataflow errors - Google Cloud
When you try to run a Dataflow job, the following error occurs: Some Cloud APIs need ... To resolve this issue, check that...
Read more >Troubleshoot Azure IoT Edge common errors - Microsoft Learn
2017-11-28 18:46:49 [INF] - Edge agent attempting to connect to IoT ... failed to create endpoint edgeHub on network nat: hnsCall failed in ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Up to you 😃, it might be a different but related issue.
I think this is related to #12550 @dalthviz