How to get the items of series A not present in series B?

8. How to get the items of series A not present in series B?



import pandas as pd
A = pd.Series([10,20,30,40,50])
B = pd.Series([10,100,20,200,80])
print(A[~A. isin(B)])

Bitwise not operators 
isin() method is used to filter data frames

Comments

Popular posts from this blog

Python Tokens

Pie Chart , Donut Plot, Area plot