Skip to content
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 · Fixed by #1220
Closed

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

jreback opened this issue Aug 12, 2015 · 0 comments · Fixed by #1220

Comments

@jreback
Copy link
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants