CBSE BOARD X, asked by shashankshashank5338, 6 months ago

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 Anonymous
3

Answer:

.......................@

Answered by devanksheenayak
2

Answer:

?????????????????????????????

Similar questions