Spyder (Python 3.6) + Pandas 0.23 - Future Warning
See original GitHub issueIssue 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
(orpip
, 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?
- import pandas as pd
- 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:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
@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:
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.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
to
and see if that fixes the problem. Then we will have a possible solution.