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

BUG: fields that confict with method names not accessible via __getitem__ #1204

Closed
jreback opened this Issue Aug 12, 2015 · 0 comments

Comments

Projects
None yet
3 participants
@jreback
Contributor

jreback commented Aug 12, 2015

This is post 0.8.2 (but behind master)

In [8]: t = blaze.Data(DataFrame({'isin' : [1,2,3], 'max' : [4,5,6]}))

# ok that this fails
In [9]: t.max.max()
TypeError: 'Field' object is not callable

In [10]: t['max']
Out[10]: 
   max
0    4
1    5
2    6

# this should work
In [11]: t['max'].max()
TypeError: 'Field' object is not callable

In [12]: t['isin'].max()
Out[12]: 3

# this too
In [13]: t['isin'].isin([1])
TypeError: 'Field' object is not callable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment