- Published on
- · Data Independent
Pandas Duplicated - pd.Series.duplicated()
This post is auto-generated from a public YouTube video for personal study notes. It is not an endorsement. The transcript is machine-derived and may contain errors; refer to the original video for accuracy.
About this video
You may want to know if you have duplicate values in your DataFrame or Series. That's where Pandas Duplicated or pd.Series.Duplicated() comes in.
You use pandas duplicated when you want to remove repeat value, or flag them for further analysis.
To do this simply call: YourSeries.duplicated() to see which values appear more than once.
But you may want to treat your duplicates differently. Do you know want to know about the first duplicate? or the last? Pandas lets you pick. However, it's a bit counter intuitive, let's look at the options.
Loading transcript…