Pandas groupby and describe flags AttributeError
问题 I have a bunch of data stored in vals . The indices are monotonic, but not continuous. I'm attempting to do some analysis on histograms of the data, so I've created the following structure: hist = pd.DataFrame(vals) hist['bins'] = pd.cut(vals, 100) This is data taken from an experimental instrument and I know that some of the bins have only 1 or 2 counts in them, which I'm trying to remove. I've tried using groupby as follows and get the following error (Full traceback included at the end of