I\'d like to be able to compute descriptive statistics on data in a Pandas DataFrame, but I only care about duplicated entries. For example, let\'s say I have the DataFrame
To get a list of all the duplicated entries with Pandas version 0.17, you can simply set 'keep = False' in the duplicated function.
frame[frame.duplicated(['key1','key2'],keep=False)] key1 key2 data 0 1 2 5 1 2 2 6 3 1 2 6 4 2 2 1 6 2 2 2 7 2 2 8