Book description
Explore a modern approach to visualizing data with Python and transform large real-world datasets into expressive visual graphics using this beginner-friendly workshop
Key Features
- Discover the essential tools and methods of data visualization
- Learn to use standard Python plotting libraries such as Matplotlib and Seaborn
- Gain insights into the visualization techniques of big companies
Book Description
Do you want to transform data into captivating images? Do you want to make it easy for your audience to process and understand the patterns, trends, and relationships hidden within your data?
The Data Visualization Workshop will guide you through the world of data visualization and help you to unlock simple secrets for transforming data into meaningful visuals with the help of exciting exercises and activities.
Starting with an introduction to data visualization, this book shows you how to first prepare raw data for visualization using NumPy and pandas operations. As you progress, you'll use plotting techniques, such as comparison and distribution, to identify relationships and similarities between datasets. You'll then work through practical exercises to simplify the process of creating visualizations using Python plotting libraries such as Matplotlib and Seaborn. If you've ever wondered how popular companies like Uber and Airbnb use geoplotlib for geographical visualizations, this book has got you covered, helping you analyze and understand the process effectively. Finally, you'll use the Bokeh library to create dynamic visualizations that can be integrated into any web page.
By the end of this workshop, you'll have learned how to present engaging mission-critical insights by creating impactful visualizations with real-world data.
What you will learn
- Understand the importance of data visualization in data science
- Implement NumPy and pandas operations on real-life datasets
- Create captivating data visualizations using plotting libraries
- Use advanced techniques to plot geospatial data on a map
- Integrate interactive visualizations to a webpage
- Visualize stock prices with Bokeh and analyze Airbnb data with Matplotlib
Who this book is for
The Data Visualization Workshop is for beginners who want to learn data visualization, as well as developers and data scientists who are looking to enrich their practical data science skills. Prior knowledge of data analytics, data science, and visualization is not mandatory. Knowledge of Python basics and high-school-level math will help you grasp the concepts covered in this data visualization book more quickly and effectively.
Table of contents
- The Data Visualization Workshop
- Preface
-
1. The Importance of Data Visualization and Data Exploration
- Introduction
- Overview of Statistics
-
NumPy
- Exercise 1.01: Loading a Sample Dataset and Calculating the Mean Using NumPy
- Activity 1.01: Using NumPy to Compute the Mean, Median, Variance, and Standard Deviation of a Dataset
- Basic NumPy Operations
- Exercise 1.02: Indexing, Slicing, Splitting, and Iterating
- Advanced NumPy Operations
- Exercise 1.03: Filtering, Sorting, Combining, and Reshaping
-
pandas
- Advantages of pandas over NumPy
- Disadvantages of pandas
- Exercise 1.04 Loading a Sample Dataset and Calculating the Mean using Pandas
- Exercise 1.05: Using pandas to Compute the Mean, Median, and Variance of a Dataset
- Basic Operations of pandas
- Exercise 1.06: Indexing, Slicing, and Iterating Using pandas
- Advanced pandas Operations
- Exercise 1.07: Filtering, Sorting, and Reshaping
- Activity 1.02: Forest Fire Size and Temperature Analysis
- Summary
- 2. All You Need to Know about Plots
-
3. A Deep Dive into Matplotlib
- Introduction
- Overview of Plots in Matplotlib
- Pyplot Basics
- Basic Text and Legend Functions
-
Basic Plots
- Bar Chart
- Activity 3.02: Creating a Bar Plot for Movie Comparison
- Pie Chart
- Exercise 3.02: Creating a Pie Chart for Water Usage
- Stacked Bar Chart
- Activity 3.03: Creating a Stacked Bar Plot to Visualize Restaurant Performance
- Stacked Area Chart
- Activity 3.04: Comparing Smartphone Sales Units Using a Stacked Area Chart
- Histogram
- Box Plot
- Activity 3.05: Using a Histogram and a Box Plot to Visualize Intelligence Quotient
- Scatter Plot
- Exercise 3.03: Using a Scatter Plot to Visualize Correlation between Various Animals
- Bubble Plot
- Layouts
- Images
- Writing Mathematical Expressions
- Summary
- 4. Simplifying Visualizations Using Seaborn
- 5. Plotting Geospatial Data
- 6. Making Things Interactive with Bokeh
- 7. Combining What We Have Learned
-
Appendix
- 1. The Importance of Data Visualization and Data Exploration
- 2. All You Need to Know about Plots
-
3. A Deep Dive into Matplotlib
- Activity 3.01: Visualizing Stock Trends by Using a Line Plot
- Activity 3.02: Creating a Bar Plot for Movie Comparison
- Activity 3.03: Creating a Stacked Bar Plot to Visualize Restaurant Performance
- Activity 3.04: Comparing Smartphone Sales Units Using a Stacked Area Chart
- Activity 3.05: Using a Histogram and a Box Plot to Visualize Intelligence Quotient
- Activity 3.06: Creating a Scatter Plot with Marginal Histograms
- Activity 3.07: Plotting Multiple Images in a Grid
-
4. Simplifying Visualizations Using Seaborn
- Activity 4.01: Using Heatmaps to Find Patterns in Flight Passengers' Data
- Activity 4.02: Movie Comparison Revisited
- Activity 4.03: Comparing IQ Scores for Different Test Groups by Using a Violin Plot
- Activity 4.04: Visualizing the Top 30 Music YouTube Channels Using Seaborn's FacetGrid
- Activity 4.05: Linear Regression for Animal Attribute Relations
- Activity 4.06: Visualizing the Impact of Education on Annual Salary and Weekly Working Hours
- 5. Plotting Geospatial Data
- 6. Making Things Interactive with Bokeh
- 7. Combining What We Have Learned
Product information
- Title: The Data Visualization Workshop
- Author(s):
- Release date: July 2020
- Publisher(s): Packt Publishing
- ISBN: 9781800568846
You might also like
book
Data Science for Business
Written by renowned data science experts Foster Provost and Tom Fawcett, Data Science for Business introduces …
book
Fundamentals of Data Visualization
Effective visualization is the best way to communicate information from the increasingly large and complex datasets …
book
Hands-On Data Visualization
Tell your story and show it with data, using free and easy-to-learn tools on the web. …
book
Visualization Analysis and Design
This book provides a systematic, comprehensive framework for thinking about visualization in terms of principles and …