df['unique'] = ~df['value'].duplicated(keep=False) print (df) value unique 0 1 True 1 2 False 2 2 False 3 3 True 4 4 False 5 4 False
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter