Note
Pandas (6) 본문
728x90
How to get the items of series A not present in series B?
# Input
ser1 = pd.Series([1, 2, 3, 4, 5])
ser2 = pd.Series([4, 5, 6, 7, 8])
# Solution
ser1[~ser1.isin(ser2)]
'Pandas' 카테고리의 다른 글
Pandas (8) (0) | 2022.07.28 |
---|---|
Pandas (7) (0) | 2022.07.27 |
Pandas (5) (0) | 2022.07.25 |
Pandas (4) (0) | 2022.07.24 |
Pandas (3) (0) | 2022.07.20 |
Comments