72
INFORMATICS PRACTICES - XI
с
U
7. Why does following code cause error ?
S1 = pd. Series (range(1, 15, 3), index = list("abcd'))
8. Why does following code cause error ?
51 pd. Series (range(1, 15, 3), index = list('ababa'))
print(s1['ab'])
9. If Ser is a Series type object having 30 values, then how are statements (a), (b) and (c), (d) similar and
different ?
(a) print(Ser.head()) (b) print(Ser.head( 8 ))
(c) print(Ser.tail()
(d) print(Ser tail(11))
10. What advantages does dataframe offer over series datastructure ? If you have similar data stored in
multiple series and a single dataframe, which one would you prefer and why?
11. Given :
import pandas as pd
11., 2., 3.), index = ['a', 'b', 'c']),
Answers
Answered by
0
Answer:
Why does following code cause error ?
S1 = pd. Series (range(1, 15, 3), index = list("abcd'))
Similar questions