How to Modify Images using Pillow

Problem Formulation and Solution Overview This article will show you how to use the Pillow Library in Python to modify and manipulate images. To make it more interesting, we have the following running scenario: Creative Prints is an online store accepting images from Photographers wishing to sell their art. The Manager would like you to … Read more

How to Suppress Warning Messages in Python

Problem Formulation and Solution Overview This article will show you how to suppress warning messages in Python scripts. Warning messages in Python are commonly used to notify the coder of a potential issue with their script. Warnings can inform the coder about any outdated or obsolete elements. An example would be if a plugin or … Read more

Pandas – How to Find DataFrame Row Indices with NaN or Null Values

Problem Formulation and Solution Overview This article will show you how to find DataFrame row indices in Python with NaN or Null (empty) values. To make it more interesting, we have the following scenario: Rivers Clothing has given you a CSV file that requires a clean-up to make it usable for Payroll and Data Analysis. … Read more

How to Print a String and an Integer

Problem Formulation and Solution Overview In this article, you’ll learn how to print a string and an integer together in Python. To make it more fun, we have the following running scenario: The Finxter Academy has decided to send its users an encouraging message using their First Name (a String) and Problems Solved (an Integer). … Read more

How to Ignore Case in Python Strings

Problem Formulation and Solution Overview In this article, you’ll learn how to ignore (upper/lower/title) case characters when dealing with Strings in Python. The main reason for ignoring the case of a String is to perform accurate String comparisons or to return accurate search results. For example, the following three (3) Strings are not identical. If … Read more

How to Access Elements From a List of Tuples in Python?

Problem Formulation and Solution Overview This article will show you how to access and retrieve tuple Elements from a List of Tuples in Python. πŸ’‘ Definition: Python Tuples are a type of Data Structure similar to Lists. However, Tuples are enclosed in round brackets () and are immutable, whereas Lists are enclosed in square brackets … Read more

How to Sort Words Alphabetically in Python

Problem Formulation and Solution Overview In this article, you’ll learn how to sort words alphabetically in Python. To make it more fun, we have the following running scenario: Some English sayings, also known as Tongue-Twisters, are fun to try and say quickly. They are also used to improve non-English speaking individuals and small children’s fluency … Read more

How to Convert Epoch Time to Date Time in Python

Problem Formulation and Solution Overview In this article, you’ll learn how to convert Epoch Time to a Date Time representation using Python. On January 1st, 1970, Epoch Time, aka Time 0 for UNIX systems, started as a date in history to remember. This date is relevant, not only due to this event but because it … Read more