count mean std min max in [ ]result unstack('smoker'out[ ]smoker no yes count mean std min max inside groupbywhen you invoke method like describeit is actually just shortcut forf lambda xx describe(grouped apply(fsuppressing the group keys in the examples aboveyou see that the resulting object has hierarchical index formed from the group keys along with the indexes of each piece of the original object this can be disabled by passing group_keys=false to groupbyin [ ]tips groupby('smoker'group_keys=falseapply(topout[ ]total_bill tip sex smoker day time size tip_pct male no thur lunch male no sun dinner female no sun dinner male no thur lunch male no sat dinner female yes sat dinner male yes sun dinner female yes sat dinner female yes sun dinner male yes sun dinner quantile and bucket analysis as you may recall from pandas has some toolsin particular cut and qcutfor slicing data up into buckets with bins of your choosing or by sample quantiles combining these functions with groupbyit becomes very simple to perform bucket or data aggregation and group operations www it-ebooks info