0 votes
in Computer Science by (19.0k points)
Consider the following Series in Python :

data = pd.Series([5, 2, 3, 7], index=['a’, 'b', 'c', 'd’)]

Which statement will display all odd values

(a) print(data%2==0)

(b) print(data(data%2!=0))

(c) print(data mad 2!=0)

(d) print(data[data%2!=0))

1 Answer

0 votes
by (305k points)

Correct option is (d) print(data[data%2!=0))

...