df['colX_count']= df.colX.map(df.colX.value_counts())
source https://stackoverflow.com/a/55576813/1330381 great for pairing log records that appear in groups of a known size you wish to filter on by the group size
df['colX_count']= df.colX.map(df.colX.value_counts())
source https://stackoverflow.com/a/55576813/1330381 great for pairing log records that appear in groups of a known size you wish to filter on by the group size