CBSE Class 12 Informatics Practices Question 87 of 101

Python Pandas — II — Question 11

Back to all questions
11
Question

Question 11

How do you create quantiles and quartiles in Python Pandas ?

Answer

In Python pandas, we can create quantiles and quartiles using the quantile() method.

The statement to create quartiles is df.quantile(q = 0.25).