Pandas.Index.difference

1 개요[ | ]

pandas.Index.difference
Python
Copy
import pandas as pd
idx1 = pd.Index([1, 2, 3, 4])
idx2 = pd.Index([3, 4, 5, 6])
print( idx1.difference(idx2) )
# Int64Index([1, 2], dtype='int64')

2 같이 보기[ | ]

3 참고[ | ]