Python 🐍 Put Legend Outside Plot πŸ“ˆ – Easy Guide

Are you tired of feeling boxed in by your Python plots and ready to break free from the constraints of traditional legend placement? In this guide, I’ll show you how to put legends outside your plot for (click to 🦘 jump): Let’s start with the first! πŸ‘‡πŸ‘©β€πŸ’» Matplotlib Put Legend Outside Plot Let’s start with … Read more

How I Scattered My Fat with Python – Scraping and Analyzing My Nutrition Data From Cronometer.com

From April 1st through August 14th, I tracked everything I ate on cronometer.com as part of a weight loss challenge. Overall I lost almost 25 pounds at a rate of 1.2 pounds per week. I always wondered what I could learn if I could scrape that data and get it into a Jupyter Notebook. In … Read more

5 Easy Ways to Download an Image from a URL in Python

Problem Formulation and Solution Overview In this article, you’ll learn how to download an image from the web in Python. To make it more fun, we have the following running scenario: Sven, a Journalist from Greeland, is writing about Glacier Calving. His editor would like photos of iceberg collapses in the area accompanying his article. … Read more

Data Science Tells This Story About the Global Wine Markets 🍷

πŸ“– Background Many people like to relax or party with a glass of wine. That makes wine an important industry in many countries. Understanding this market is important to the livelihood of many people. For fun, consider the following fictional scenario: 🍷 Story: You work at a multinational consumer goods organization that is considering entering … Read more

Plotly Dash vs. Streamlit

What are Plotly Dash and Streamlit? Plotly Dash and Streamlit are both open-source Python libraries for creating interactive web applications for data visualization and analysis. The libraries are designed to make it easy for developers to create visually appealing and informative dashboards and reports that can be shared with others through a web browser. Some … Read more

Python Matplotlib Makes Conway’s Game of Life Come Alive

In this article, you’ll learn how to make this beautiful and interesting animation using only Python, NumPy, and Matplotlib — nothing else: πŸ‘‡ But how does the Game of Life work – and what’s behind the classical visualization anyways? The Game of Life Conway’s Game of Life is a cellular automaton devised by the British … Read more

The Ultimate Guide to Bivariate Analysis with Python

This article will review some of the critical techniques used in Exploratory Data Analysis, specifically for Bivariate Analysis. We will review some of the essential concepts, understand some of the math behind correlation coefficients and provide sufficient examples in Python for a well-rounded, comprehensive understanding. What is Bivariate Analysis? Exploratory Data Analysis, or EDA, is … Read more

Plotly Dash: Bootstrap Indicator Components Made Easy

Welcome to the bonus content of “The Book of Dash”. πŸ€— Here you’ll find additional examples of Plotly Dash components, layouts and style. To learn more about making dashboards with Plotly Dash, and how to buy your copy of “The Book of Dash”, please see the reference section at the bottom of this article. This … Read more

(Fixed) Python ModuleNotFoundError: No Module Named ‘Dash’

Quick Fix: Python raises the ImportError/ModuleNotFoundError: No module named ‘dash’ when it cannot find the library dash. The most frequent source of this error is that you haven’t installed dash explicitly with pip install dash. Alternatively, you may have different Python versions on your computer, and dash is not installed for the particular version you’re … Read more