CBSE Class 12 Informatics Practices Question 36 of 101

Python Pandas — II — Question 12

Back to all questions
12
Question

Question 12

To divide total distribution of given data in four equal parts, ............... function is used.

  1. median()
  2. quartile()
  3. quantile()
  4. all of these
Answer

quantile()

Reason — The quantile() function is used to divide the total distribution of given data into four equal parts. For example, to divide the data of DataFrame ndf into four equal parts, the statement would be df.quantile(q = 0.25).