The Book of Dash

Build Dashboards with Python and Plotly

Create stunning interactive dashboard applications in Python with the Dash visualization and data analysis tool. Build interfaces that make sense of your data, and make it pretty.

A swift and practical introduction to building interactive data visualization apps in Python, known as dashboards. You’ve seen dashboards before; think election result visualizations you can update in real time, or population maps you can filter by demographic. With the Python Dash library you’ll create analytic dashboards that present data in effective, usable, elegant ways in just a few lines of code.
 
The book is fast-paced and caters to those entirely new to dashboards. It will talk you through the necessary software, then get straight into building the dashboards themselves. You’ll learn the basic format of a Dash app in a Twitter analysis dashboard that tracks numbers of likes over time. You’ll then build up skills through three more sophisticated projects. The first compares world data in three areas: volume of internet usage, percentage of parliament seats held by women, and CO2 emissions; the second is a financial portfolio dashboard that models your investments; and the third is visualizesmachine learning algorithms. The final chapter sets you up with some useful final skills, like debugging your code and applying color themes.
 
In this book you will:
  • Create and run your first Dash apps
  • Use the pandas library to manipulate and analyze social media and API data
  • Create a variety of stunning and effective charts using Plotly
  • Learn to use bar charts, chloropleth maps, contour plots, and more
  • Examine and build on existing apps written by the pros
  •  
    Dash combines several technologies to get you building dashboards quickly and efficiently. This book will do the same.
    Acknowledgments
    Introduction
    PART I: CRASH COURSES
    Chapter 1: Python Refresher
    Chapter 2: PyCharm Tutorial
    Chapter 3: Pandas Crash Course
    PART II: BUILDING APPLICATIONS
    Chapter 4: First Dash App
    Chapter 5: Global Data Analysis: Advanced Layouts and Graphs
    Chapter 6: Investment Portfolio: Building Larger Apps
    Chapter 7: Exploring Machine Learning
    Chapter 8: Tips and Tricks
    Appendix: Python Basics
    Index
    Adam Schroeder has been teaching Plotly Dash for over two years on YouTube as @CharmingData. His videos have over 60 thousand views per month. Adam is passionate about helping people learn data visualization. He has an M.A. in Government and Conflict Resolution and currently works at Plotly.
     
    Christian Mayer has a PhD in computer science and is the founder of the popular Python site Finxter.com, an educational platform that helps more than 3 million people a year learn to code. He has published a number of books, including the Coffee Break Python series, and is the author of Python One-Liners (No Starch Press, 2020).
     
    Ann Marie Ward is a Dash contributor and a moderator on the Dash community forum. Ann Marie has a BA in Economics and is a retired CEO. She discovered Dash when searching for a better way to analyze financial data and was so amazed by what's possible to create with Dash that she started to learn Python, JavaScript and R. Her contributions to Dash include improving documentation, fixing bugs, and adding features.

    About

    Create stunning interactive dashboard applications in Python with the Dash visualization and data analysis tool. Build interfaces that make sense of your data, and make it pretty.

    A swift and practical introduction to building interactive data visualization apps in Python, known as dashboards. You’ve seen dashboards before; think election result visualizations you can update in real time, or population maps you can filter by demographic. With the Python Dash library you’ll create analytic dashboards that present data in effective, usable, elegant ways in just a few lines of code.
     
    The book is fast-paced and caters to those entirely new to dashboards. It will talk you through the necessary software, then get straight into building the dashboards themselves. You’ll learn the basic format of a Dash app in a Twitter analysis dashboard that tracks numbers of likes over time. You’ll then build up skills through three more sophisticated projects. The first compares world data in three areas: volume of internet usage, percentage of parliament seats held by women, and CO2 emissions; the second is a financial portfolio dashboard that models your investments; and the third is visualizesmachine learning algorithms. The final chapter sets you up with some useful final skills, like debugging your code and applying color themes.
     
    In this book you will:
  • Create and run your first Dash apps
  • Use the pandas library to manipulate and analyze social media and API data
  • Create a variety of stunning and effective charts using Plotly
  • Learn to use bar charts, chloropleth maps, contour plots, and more
  • Examine and build on existing apps written by the pros
  •  
    Dash combines several technologies to get you building dashboards quickly and efficiently. This book will do the same.

    Table of Contents

    Acknowledgments
    Introduction
    PART I: CRASH COURSES
    Chapter 1: Python Refresher
    Chapter 2: PyCharm Tutorial
    Chapter 3: Pandas Crash Course
    PART II: BUILDING APPLICATIONS
    Chapter 4: First Dash App
    Chapter 5: Global Data Analysis: Advanced Layouts and Graphs
    Chapter 6: Investment Portfolio: Building Larger Apps
    Chapter 7: Exploring Machine Learning
    Chapter 8: Tips and Tricks
    Appendix: Python Basics
    Index

    Author

    Adam Schroeder has been teaching Plotly Dash for over two years on YouTube as @CharmingData. His videos have over 60 thousand views per month. Adam is passionate about helping people learn data visualization. He has an M.A. in Government and Conflict Resolution and currently works at Plotly.
     
    Christian Mayer has a PhD in computer science and is the founder of the popular Python site Finxter.com, an educational platform that helps more than 3 million people a year learn to code. He has published a number of books, including the Coffee Break Python series, and is the author of Python One-Liners (No Starch Press, 2020).
     
    Ann Marie Ward is a Dash contributor and a moderator on the Dash community forum. Ann Marie has a BA in Economics and is a retired CEO. She discovered Dash when searching for a better way to analyze financial data and was so amazed by what's possible to create with Dash that she started to learn Python, JavaScript and R. Her contributions to Dash include improving documentation, fixing bugs, and adding features.

    Books for National Depression Education and Awareness Month

    For National Depression Education and Awareness Month in October, we are sharing a collection of titles that educates and informs on depression, including personal stories from those who have experienced depression and topics that range from causes and symptoms of depression to how to develop coping mechanisms to battle depression.

    Read more

    Horror Titles for the Halloween Season

    In celebration of the Halloween season, we are sharing horror books that are aligned with the themes of the holiday: the sometimes unknown and scary creatures and witches. From classic ghost stories and popular novels that are celebrated today, in literature courses and beyond, to contemporary stories about the monsters that hide in the dark, our list

    Read more

    Books for LGBTQIA+ History Month

    For LGBTQIA+ History Month in October, we’re celebrating the shared history of individuals within the community and the importance of the activists who have fought for their rights and the rights of others. We acknowledge the varying and diverse experiences within the LGBTQIA+ community that have shaped history and have led the way for those

    Read more