MACHINE LEARNING RECIPES
DATA CLEANING PYTHON
DATA MUNGING
PANDAS CHEATSHEET
ALL TAGS
# How to generate a box plot on given data using pandas?

# How to generate a box plot on given data using pandas?

This recipe helps you generate a box plot on given data using pandas

Suppose we have a dataset and are interested in plotting box plot. They come in handy when finding outliers. Middle line is our median. Below and above median is 1st and 3rd quartile. Remaining are 0th and 4th. Singular point if found are outliers.

So this recipe is a short example on How to generate box plot using pandas on a column. Let's get started.

```
import pandas as pd
import seaborn as sb
```

Let's pause and look at these imports. Pandas is generally used for performing mathematical operation and preferably over arrays. Seaborn is just used in here to import dataset.

```
df = sb.load_dataset('tips')
```

Here we have imported tips dataset from seaborn library.

Now our dataset is ready.

```
df.boxplot(column=['total_bill'])
```

Here we simply used boxplot to plot total_bill.

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

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

We can see box plot for total bill.

The goal of this data science project is to build a predictive model and find out the sales of each product at a given Big Mart store.

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 project, we are going to talk about Time Series Forecasting to predict the electricity requirement for a particular house using Prophet.

In this machine learning resume parser example we use the popular Spacy NLP python library for OCR and text classification.

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

In this supervised learning machine learning project, you will predict the availability of a driver in a specific area by using multi step time series analysis.

Deep Learning Project- Learn to apply deep learning paradigm to forecast univariate time series data.

Machine Learning Project - Work with KKBOX's Music Recommendation System dataset to build the best music recommendation engine.

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 machine learning churn project, we implement a churn prediction model in python using ensemble techniques.