MACHINE LEARNING RECIPES
DATA CLEANING PYTHON
DATA MUNGING
PANDAS CHEATSHEET
ALL TAGS
# How to compute quantiles using Pandas?

# How to compute quantiles using Pandas?

This recipe helps you compute quantiles using Pandas

quantile() function return values at the given quantile over requested axis, a numpy percentile.

So this recipe is a short example on How to compute quantiles in pandas. Let's get started.

```
import pandas as pd
```

Let's pause and look at these imports. Pandas is generally used for performing mathematical operation and preferably over arrays.

```
df = pd.DataFrame({"A":[0, 1, 2, 3, 5, 9],
"B":[11, 5, 8, 6, 7, 8],
"C":[2, 5, 10, 11, 9, 8]})
```

Here we have setup a random dataset with some random values in it.

```
print(df.quantile(.5,axis=0))
print(df.quantile(.25,axis=0))
```

Here we are applied quantile() to find out the quantiles. 0.5 signify median and 0.25, first quater quantile. Similarily we can find any values quantiles.

Once we run the above code snippet, we will see:

Scroll down to the ipython file to look at the results.

We can see the how quantiles being calculated for each series at our specified value.

In this deep learning project, we will predict customer churn using Artificial Neural Networks and learn how to model an ANN in R with the keras deep learning package.

In this Kmeans clustering machine learning project, you will perform topic modelling in order to group customer reviews based on recurring patterns.

In this project, we are going to work on Deep Learning using H2O to predict Census income.

Data Science Project in R -Build a machine learning algorithm to predict the future sale prices of homes.

Data Science Project in Python- Given his or her job role, predict employee access needs using amazon employee database.

Machine Learning Project in R-Detect fraudulent click traffic for mobile app ads using R data science programming language.

Machine Learning Project in R- Predict the customer churn of telecom sector and find out the key drivers that lead to churn. Learn how the logistic regression model using R can be used to identify the customer churn in telecom dataset.

This project analyzes a dataset containing ecommerce product reviews. The goal is to use machine learning models to perform sentiment analysis on product reviews and rank them based on relevance. Reviews play a key role in product recommendation systems.

In this data science project, you will predict borrowers chance of defaulting on credit loans by building a credit score prediction model.

In this machine learning and IoT project, we are going to test out the experimental data using various predictive models and train the models and break the energy usage.