Adam Murphy

Expert Writer & Content Creator - Data Science & Machine Learning. ----- I help education companies create engaging blog and video content teaching Data Science to beginners. Unlike my competitors, I learn new concepts every day and so understand what it's like to be a student. My articles are easy-to-understand, effective and enjoyable to read. My videos are upbeat, engaging and detailed. ----- To work with me, please reach out on Upwork https://tinyurl.com/hire-adam-murphy

Legends add clarity to complex plots

Matplotlib Legend – A Helpful Illustrated Guide

You’ve plotted some data in Matplotlib but you don’t know which data shows what? It’s time for a legend! How to add a legend in Python’s Matplotlib library? Label it with the label keyword argument in your plot method. Before plt.show(), call plt.legend() your plot will be displayed with a legend. Here’s the minimal example: …

Matplotlib Legend – A Helpful Illustrated Guide Read More »

Matplotlib Subplot – A Helpful Illustrated Guide

Too much stuff happening in a single plot? No problem—use multiple subplots! This in-depth tutorial shows you everything you need to know to get started with Matplotlib’s subplot() function. If you want, just hit “play” and watch the explainer video. I’ll then guide you through the tutorial: To create a matplotlib subplot with any number …

Matplotlib Subplot – A Helpful Illustrated Guide Read More »

Python Dictionary – The Ultimate Guide

Python comes with several built-in data types. These are the foundational building blocks of the whole language. They have been optimised and perfected over many years. In this comprehensive tutorial, we will explore one of the most important: the dictionary (or dict for short). For your convenience, I’ve created a comprehensive 8000-word eBook which you …

Python Dictionary – The Ultimate Guide Read More »

An random example

Python’s Random Module – Everything You Need to Know to Get Started

Life is unpredictable. Sometimes good things happen out of the blue like you find $100 on the floor. And sometimes bad things happen, like your flight being canceled because of bad weather. Most programming languages have a module to deal with randomness. Python is no exception coming with the module named random and in this …

Python’s Random Module – Everything You Need to Know to Get Started Read More »