This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ValueError on eval after 'from pandas import *'
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.4
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: SilentGhost, espri
Priority: normal Keywords:

Created on 2016-06-21 08:59 by espri, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
eval problem.ipynb espri, 2016-06-21 08:59 Test program: 'from pandas import *' => ValueError on eval pandas DataFrame
Messages (2)
msg268975 - (view) Author: Eric Sprigg (espri) Date: 2016-06-21 08:59
Using 'from pandas import *' leads to a ValueError exception being raised when eval tries to execute an expression like
  eval("df['Country'] == 'Brazil'")

When the alternative form 'import pandas' is used, the expression evaluates as expected.

The test program in the attached file demonstrates the problem.

I use anaconda with Python 3.4.4 on OS X 10.11.5
msg268978 - (view) Author: SilentGhost (SilentGhost) * (Python triager) Date: 2016-06-21 09:26
Pandas is not part of the standard library. Their issue tracker is at https://github.com/pydata/pandas/issues
History
Date User Action Args
2022-04-11 14:58:32adminsetgithub: 71548
2016-06-21 09:26:32SilentGhostsetstatus: open -> closed

nosy: + SilentGhost
messages: + msg268978

resolution: third party
stage: resolved
2016-06-21 08:59:40espricreate