CBSE Class 12 Informatics Practices Question 35 of 101

Python Pandas — II — Question 11

Back to all questions
11
Question

Question 11

To divide total distribution of given data in two 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 two equal parts. For example, to divide the data of DataFrame df into two equal parts, the statement would be df.quantile(q = 0.5).