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

Nan rows for filtered out data using bcolz backend #1221

tdennist opened this Issue Aug 28, 2015 · 0 comments


None yet
2 participants

tdennist commented Aug 28, 2015

This quirk was reported in this thread:!topic/blaze-dev/BqJx4LAy0xE

In [28]: blaze.__version__

In [29]: bcolz.__version__

The bcolz backend to Blaze seems to display a nan entry for the filtered out rows:

In [22]: df = blaze.Data(bcolz.ctable([[1,1,3,3], [1,2,3,4]]))

In [23]: df = df[df['f1']==3]

In [24]:[['f0']], Sum=df['f1'].sum())

   f0  Sum
0   1  NaN
1   3    3

The Pandas backend behaves as I would expect:

In [25]: df = blaze.Data(pandas.DataFrame(dict(f0=[1,1,3,3], f1=[1,2,3,4])))

In [26]: df = df[df['f1']==3]

In [27]:[['f0']], Sum=df['f1'].sum())

   f0  Sum
0   3    3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment