0% found this document useful (0 votes)
35 views

Seaborn Seaborn: 1 2 Import Seaborn As Sns Import Pandas As PD

This document introduces the seaborn library for data visualization in Python. It discusses how seaborn allows easy creation of graphs and charts from pandas data and provides functions to draw various visualizations. Examples of visualizations include scatter plots, histograms, heatmaps and more. The document also imports a sample tips dataset to demonstrate basic usage of seaborn for plotting data.

Uploaded by

Vincent Giang
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Seaborn Seaborn: 1 2 Import Seaborn As Sns Import Pandas As PD

This document introduces the seaborn library for data visualization in Python. It discusses how seaborn allows easy creation of graphs and charts from pandas data and provides functions to draw various visualizations. Examples of visualizations include scatter plots, histograms, heatmaps and more. The document also imports a sample tips dataset to demonstrate basic usage of seaborn for plotting data.

Uploaded by

Vincent Giang
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Introduction to Seaborn.ipynb - Colaboratory https://colab.research.google.com/drive/1sqCv8dgTLJ4z49SyQ...

Overview
In this module, we will discuss about different forms of data visualizations and how
we can visualize our data using Python.

We will be using a Python library named seaborn for visualizations.

seaborn offers a simple and easy to understand set of functions to draw different
graphs and charts that we might need.

Since the wide adoption of pandas and numpy , seaborn has support for both. But
we will be mainly using pandas when handling data.

Importance of Data Visualization


As a form of representation of data (Visual representation)
Inferring statistical characteristics (Outliers, relationships..)
Charts are more appealing to gather insights than tables.

Seaborn Basics
We can import Seaborn by calling import seaborn as sns and we will be calling library
as sns throughout the script.

1 import seaborn as sns
2 import pandas as pd

/usr/local/lib/python3.6/dist-packages/statsmodels/tools/_testing.py:19: FutureWa
import pandas.util.testing as tm

For visualizations, we need data. So, we will import a dataset called tips through seaborn.
Dataset has details on customers that visited a restaurent which include,

Total bill amount


Tip
Sex of customer
Smoker or not
Day of week

1 of 2 8/10/20, 9:01 AM
Introduction to Seaborn.ipynb - Colaboratory https://colab.research.google.com/drive/1sqCv8dgTLJ4z49SyQ...

2 of 2 8/10/20, 9:01 AM

You might also like