-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
Pure Python GroupBy bug #618
Comments
could you give me a self-contained test case? related to #443 |
pity, but I fail to come up with a minimal example -- indeed it just inserts NAs for those, so may be it is a different scenario... I will keep it in mind - may be I would come up with one eventually ;) |
ok -- here is a non-minimalistic example. seems to boil down to me somewhat abusing index (I have 'subject' column which is also used as a part of MultiIndex for rows). But here is a sample data (just gunzip it): from pandas import *
store_ = HDFStore('/tmp/data4wes.hdf5')
pivot_table(store_['d'], 'RT', rows=['subject'], cols=['condition', 'pgender', 'gaze'], margins=True) |
@yarikoptic there are actually a couple of bugs here. Note this works fine:
but this does not:
thanks for reproducing! This is a blocker for 0.7.0 so I will fix asap... |
Glad to be of "help" ;-)
Cool -- thanks in advance =------------------------------------------------------------------= |
Alright, this is all set and fixed in master |
I have tried to find related issue but failed... so pardon me if it is a duplicate:
ATM if groupping doesn't result in actually all possible combinations, the pandas spits out non-informative
imho there could be an option to still handle those but place NaNs for those entries, OR at least spit out an informative exception something like "combination f1='x', f2='y' doesn't have data entries in the original data, or smth like that
The text was updated successfully, but these errors were encountered: