CBSE Class 12 Informatics Practices
Question 37 of 101
Python Pandas — II — Question 13
Back to all questionsquantile()
Reason — To divide the total distribution of given data into eight equal parts, we can use the quantile() function with a quantile value of 0.125 (1/8). For example, to divide the data of DataFrame df1 into eight equal parts, the statement would be df.quantile(q = 0.125).