22.
Consider the dataframe df and answer any four questions from (i) to (v)
Cereals
100
150
350
700
i)
Rice
Wheat
Pulses
West Bengal 1500
500
NaN
Punjab
1100
1600
150
Uttar Pradesh 1200
3000
100
Maharashtra
NaN
200
700
Write down the command that will give the following output.
Rice 3
Wheat 4
Pulses 3
Cereals 4
dtype: int64
1
ii)
1
While trying to extract the first 3 rows of dataframe df, Nita has written the
code as dfiloc(0:2). But it is returning 2 rows. Why?Suggest the solution.
The function to get the index of maximum value in a column of dataframe is
iii)
1
a)max() b)index() c)maxidxl) djidxmax()
Answers
Answered by
3
Answer:
.......................@
Answered by
2
Answer:
?????????????????????????????
Similar questions