Seaborn Tutorial
Function Reference
Seaborn Useful Resources
Selected Reading
- Seaborn - Pair Grid
- Seaborn - Facet Grid
- Seaborn - Linear Relationships
- Multi Panel Categorical Plots
- Seaborn - Plotting Wide Form Data
- Seaborn - Statistical Estimation
- Distribution of Observations
- Seaborn - Plotting Categorical Data
- Visualizing Pairwise Relationship
- Seaborn - Kernel Density Estimates
- Seaborn - Histogram
- Seaborn- Color Palette
- Seaborn - Figure Aesthetic
- Importing Datasets and Libraries
- Seaborn - Environment Setup
- Seaborn - Introduction
- Seaborn - Home
Function Reference
Seaborn Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Seaborn - Plotting Wide Form Data
Seaborn - Plotting Wide Form Data
It is always preferable to use ‘long-from’ or ‘tidy’ datasets. But at times when we are left with no option rather than to use a ‘wide-form’ dataset, same functions can also be appped to “wide-form” data in a variety of formats, including Pandas Data Frames or two-dimensional NumPy arrays. These objects should be passed directly to the data parameter the x and y variables must be specified as strings
Example
import pandas as pd import seaborn as sb from matplotpb import pyplot as plt df = sb.load_dataset( iris ) sb.boxplot(data = df, orient = "h") plt.show()
Output
Additionally, these functions accept vectors of Pandas or NumPy objects rather than variables in a DataFrame.
Example
import pandas as pd import seaborn as sb from matplotpb import pyplot as plt df = sb.load_dataset( iris ) sb.boxplot(data = df, orient = "h") plt.show()
Output
The major advantage of using Seaborn for many developers in Python world is because it can take pandas DataFrame object as parameter.
Advertisements