The Book of Dash: Build Dashboards with Python and Plotly
- Length: 224 pages
- Edition: 1
- Language: English
- Publisher: No Starch Press
- Publication Date: 2022-10-25
- ISBN-10: 1718502222
- ISBN-13: 9781718502222
- Sales Rank: #614913 (See Top 100 Books)
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.
Title Page Copyright Dedication About the Authors Acknowledgments Introduction Why This Book Why Plotly Dash Who This Book Is For What’s in the Book Online Resources Part I: Crash Courses 1. Python Refresher Lists Adding Elements Removing Elements Reversing Lists Sorting Lists Indexing List Elements Slicing Dictionaries List Comprehension Object-Oriented Programming Classes and Objects Terminology Decorator Functions and Annotations Summary 2. Pycharm Tutorial Installing PyCharm Creating a Project Running a Dash App Installing Dash Through PyCharm Using Dash with GitHub Summary 3. A Crash Course in Pandas Visual Overview Cheat Sheet Installing pandas Creating Objects in pandas Series DataFrames Selecting Elements in DataFrames Select by Column Select by Index and Slice Select by Label Modifying an Existing DataFrame Summary Resources Part II: Building Applications 4. First Dash App Setting Up the Project Importing the Libraries Data Management Layout and Styling Styling: Embellishing Your App Dash Components HTML Components Core Components Dash Callbacks Callback Decorator Callback Function Callback Diagram Plotly Express Line Charts Summary 5. Global Data Analysis: Advanced Layouts and Graphs Setting Up the Project Importing the Libraries Data Management Dash Bootstrap Styling Dash Core Components Dash Callbacks Data Retrieval Callback Figure Creation Callback Callback Diagram Callback Ordering Plotly Express Choropleth Maps Summary 6. Investment Portfolio: Building Larger Apps Asset Allocation Download and Run the App App Structure Setting Up the Project Importing the Libraries Adding the Stylesheets Data Management Layout and Styling Components Tabs Card Containers and Sliders Input Containers Tool Tips Data Tables Content Tables Markdown Text Pie Chart Using Plotly Graph Objects Line Chart Using Plotly Graph Objects Dash Callbacks Interactive Figures Callbacks Using State Circular Callbacks and Synchronizing Components Callbacks with Multiple Inputs and Multiple Outputs Summary 7. Exploring Machine Learning Dashboard Apps to Make Machine Learning Models More Intuitive Classification: A Short Guide Support Vector Machines The SVM Explorer App Python Libraries Data Management Layout and Styling Layout Styling Reusable Components Defining a Card Defining a Formatted Slider Defining a Named Slider Defining a Named Dropdown Using a Dash Graph Creating a Plotly Contour Plot Using Dash Loading Dash Callbacks Summary Resources 8. Tips and Tricks Dash Enterprise App Gallery Enhancing Your Learning with the Plotly Forum App Theme Explorer Debugging a Dash App dash-labs Formatting Your Code with Black Follow-up Resources Appendix: Python Basics Index
Donate to keep this site alive
How to download source code?
1. Go to: https://nostarch.com/
2. Search the book title: The Book of Dash: Build Dashboards with Python and Plotly
, sometime you may not get the results, please search the main title
3. Click the book title in the search results
3. Download the Source Code.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.