Advertisements
Advertisements
Question
What will be the output of the following code?
import pandas as pd
myser = pd.Series([0, 0, 0])
print(myser)
Options
0 0
0 0
0 00 1
0 1
0 20 0
1 0
2 00 0
1 1
2 2
MCQ
Solution
0 0
1 0
2 0
Explanation:
Because 0 is the starting point for indexing values in a series. Every piece of data is given an index, even if the pieces are 0.
shaalaa.com
Is there an error in this question or solution?