-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TypeError when subtracting datetime64 and timestamp but only in eval #30729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Perhaps related issue I found: #28286 |
pls try on master |
I don't have that set up personally, can you just copy paste the script? |
I just tried this on master and got the same thing:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code Sample
Live demo: https://repl.it/repls/SelfassuredFrighteningNumber
Problem description
Subtraction works 'normally' but not when used inside DataFrame.eval or .query. AFAIK the two methods should be equivalent. eval fails with:
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-1036-gcp
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.3numpy : 1.18.0
pytz : 2019.3
dateutil : 2.8.1pip : 19.0.3
setuptools : 40.8.0
Cython : Nonepytest : None
hypothesis : None
sphinx : Noneblosc : None
feather : None
xlsxwriter : Nonelxml.etree : None
html5lib : None
pymysql : Nonepsycopg2 : None
jinja2 : None
IPython : Nonepandas_datareader: None
bs4 : None
bottleneck : Nonefastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : None
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
The text was updated successfully, but these errors were encountered: