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.

Spyder (Python 3.6) + Pandas 0.23 - Future Warning

See original GitHub issue

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

‘FutureWarning’ generated in error - appears to be a bug. Fresh install of Spyder Python 3.6.5 via Anaconda, just two lines of code in a new console (below) begin to trigger error - after a multi-hour work session. Thank you!

What steps reproduce the problem?

  1. import pandas as pd
  2. nov17_3mo = pd.date_range(end=‘2017-11-01’, periods=3, freq=‘MS’)

What is the expected output? What do you see instead?

Object is created as requested - but I get additional error: C:\Users\pjacob\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\widgets\variableexplorer\utils.py:414: FutureWarning: ‘summary’ is deprecated and will be removed in a future version. display = value.summary()

Once it starts, this error comes up after every line of code executed in the console, e.g., print(1+1)

Paste Traceback/Error Below (if applicable)


PASTE TRACEBACK HERE

Versions

  • Spyder version: 3.2.8
  • Python version: 3.6.5
  • Qt version: 5.9.4
  • PyQt version: 5.9.2
  • Operating System name/version: Windows 10

Dependencies

PASTE DEPENDENCIES HERE

IPython >=4.0 : 6.4.0 (OK) cython >=0.21 : 0.28.2 (OK) jedi >=0.9.0 : 0.12.0 (OK) nbconvert >=4.0 : 5.3.1 (OK) numpy >=1.7 : 1.14.3 (OK) pandas >=0.13.1 : 0.23.0 (OK) pycodestyle >=2.3: 2.4.0 (OK) pyflakes >=0.6.0 : 1.6.0 (OK) pygments >=2.0 : 2.2.0 (OK) pylint >=0.25 : 1.8.4 (OK) qtconsole >=4.2.0: 4.3.1 (OK) rope >=0.9.4 : 0.10.7 (OK) sphinx >=0.6.6 : 1.7.4 (OK) sympy >=0.7.3 : 1.1.1 (OK)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Jun 25, 2018

@dalthviz, please help me to solve this one. Here

https://travis-ci.org/spyder-ide/spyder/jobs/395955090#L1512

you can find here all warnings generated by the latest Pandas.

For each one please do the following:

try:
    display = value._summary()
except AttributeError:
    display = value.summary()

This is for summary, but you get the idea for the rest of them: the new method name must be called first and the old one second. This way we will guarantee compatibility with old Pandas versions and avoid these warnings.

1reaction
bcolsencommented, Jun 20, 2018

Yes clearly this needs to be fixed.

If you want you can test a possible workaround, try changing:

C:\Users\pjacob\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\widgets\variableexplorer\utils.py line 414

from

display = value.summary()

to

display = value._summary()

and see if that fixes the problem. Then we will have a possible solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pandas.date_range resulting in a repeated 'sticky' warning ...
I tried your code on idle and spyder it didn't give me the warning. – U12-Forward · 1 · 1 · The deprecation...
Read more >
How to Fix FutureWarning Messages in scikit-learn
A Python script that reports warnings when it runs can be frustrating. For a beginner, it may feel like the code is not...
Read more >
How to suppress Pandas Future warning - Efficient User
I used to get future warning in the console like some method is going to changed or deprecated in the future. So change...
Read more >
Pandas module was not found - RapidMiner Community
The python script worked well in Spyder. However, RapidMiner said that "Error: Pandas module not found" even though the installation list shows ...
Read more >
Installation — pandas 0.23.0 documentation
The Python core team plans to stop supporting Python 2.7 on January 1st, 2020. In line with NumPy's plans, all pandas releases through...
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