CBSE CS and IP

CBSE Class 11 & 12 Computer Science and Informatics Practices Python Materials, Video Lecture

Descriptive Statistics (1 Mark Questions)


  1. In case of sum() function, to find the sum of each row we have to give argument:
    • iaxis="rows"
    • axis=0
    • axis=1
    • rows="True"

  2. To find the column wise 50% quantile of a DataFrame df, which of the following should be used:
    • df.quantile(quartile='0.5')
    • df.quartile(quantile='0.5')
    • df.quantile(q='0.5')
    • df.quartile(q='0.5')

  3. The 4-quantile is called:
    • median
    • percentiles
    • tertiles
    • quartiles

  4. Write the Output of the following:
    import pandas as pd
    s=pd.Series([1,2,3,4])
    s.quantile()
    

  5. Fill in the blanks as per the three given options:
    skipna is a parameter in descriptive statistics when used with min() function _______________ NA/null values when computing the result.
    (i) include (ii) exclude (iii) does nothing with
  6. Consider the following python code and write the output for statement S1:
    import pandas as pd
    K=pd.series([2,4,6,8,10,12,14])
    K.quantile([0.50,0.75]) ---------------------- S1
    

No comments:

Post a Comment