Informatics Practices
Which of the following statement is wrong ?
- We can't change the index of the series
- We can easily convert the list, tuple, and dictionary into a series
- A series represents a single column in memory
- We can create empty series.
Related Questions
To display first three elements of a Series object S, you may write …………… .
- S[:3]
- S[3]
- S[3rd]
- all of these
To display last five rows of a Series object S, you may write …………… .
- head()
- head(5)
- tail()
- tail(5)
What type of error is returned by the following statement ?
import pandas as pa pa.Series([1, 2, 3, 4], index = ['a', 'b', 'c'])- Value Error
- Syntax Error
- Name Error
- Logical Error
What will be the output of the following code ?
import pandas as pd myser = pd.Series([0, 0, 0]) print(myser)- 0 0
0 0
0 0 - 0 1
0 1
0 2 - 0 0
1 0
2 0 - 0 0
1 1
2 2
- 0 0