Rohan wants to create the pandas series with first 5 even numbers with index as 'a', 'b',' c',' d', 'e'. Choose the correct statements to do the same. Assuming that Pandas library is already imported with object alias as pd and numpy as np.

1
pd.Series(np.arange(2,12,2), index=['a', 'b', 'c', 'd','e'])
2
pd.Series(np.range(2,12,2), index=['a', 'b', 'c', 'd', 'e'])
3
pd.Series(np.arange(2,10,2), index=['a', 'b', 'c', 'd', 'e'])
4
pd.Series(pd.arange(2,12,2), index=['a', 'b', 'c', 'd', 'e'])

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation