CBSE BOARD XII, asked by shashankshashank5338, 7 months ago

22
Consider the dataframe df and answer any four questions from (i) to (v)
Rice
Wheat
Pulses
Cereals
1500
500
NaN
100
West Bengal
Punjab
1100
1600
150
150
Uttar Pradesh
1200
3000
100
350
700
Maharashtra NaN
200
700
Write down the command that will give the following output.
i)
1
Rice
3
Wheat 4
Pulses
3
Cereals 4
dtype: int64
1
ii)
While trying to extract the first 3 rows of dataframe df, Nita has written the
code as df.iloc[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
1
iii)
a)max() b)index() c)maxidx() d)idxmax() ​

Answers

Answered by priyaranjan1611
0

Answer:

MARK ME AS BRILIANIST

Explanation:

what is it

Similar questions