Anshuman wants to create a series named ‘S1’. He has written the following codes. His friend Shubham checked the code and said that one of the code given below is not working. As a friend of Anshuman, help him to find the incorrect code. a. S1=pd.Series(data=[11, 12, 5, 6,9],index=[1,2,3,4,5])

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
Anshuman wants to create a series named ‘S1’. He has written the following codes. His friend Shubham checked the code and said that one of the code given below is not working. As a friend of Anshuman, help him to find the incorrect code.
a. S1=pd.Series(data=[11, 12, 5, 6,9],index=[1,2,3,4,5])

1.S1=pd.Series(data=[11, 12, 5, 6,9],index=[1,2,3,4,5])

2.S1=pd.Series([11, 12, 5, 6,9],index=[1,2,3,4,5])

3.S1=pd.Series([11, 12, 5, 6,9],[1,2,3,4,5])

4.S1=pd.Series(data=[11, 12, 5, 6,9], [1,2,3,4,5])


More MCQS Questions and answers

R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!