Skip to content
Advertisement

Compare two pandas series and remove duplicates

I have two series:

JavaScript

I want to compare ser1 and ser2 and then remove the duplicates and put the result into ser1 to have something like this:

JavaScript

I tried pd.concat but this gave me the combination of the two series without removing the duplicates.

Advertisement

Answer

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement