question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when trying to inspect a 'NaT' in Variable Explorer

See original GitHub issue

Description

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:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
goanpecacommented, May 5, 2020

Up to you 😃, it might be a different but related issue.

1reaction
goanpecacommented, May 5, 2020

I think this is related to #12550 @dalthviz

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found