import pandas as pdimport numpy as npsr1 = pd.Series([1, 2, 3, 4, 5])sr2 = pd.Series([2, 4, 6, 8, 10])print("Original Series:")print("sr1:")print(sr1)print("sr2:")print(sr2)print("\nItems of a given series not present in another given series:")sr11 = #TO DO -- Complete the Codesr22 = #TO DO -- Complete the Coderesult = #TO DO -- Complete the Codeprint(result)
Intended output
Original Series:sr1:0 11 22 33 44 5dtype: int64sr2:0 21 42 63 84 10dtype: int64
items of a given series not present in another given series:0 12 3
4 55 66 87 10dtype: int64
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here