26 Apr 2022 Luke Hande How to Get a Substring of a String in Python Learn how to get a substring of a string in Python. Learning anything new can be a challenge. The more you work with Python, the more you notice how often strings pop up. String manipulation in Python is an important skill. In this article, we give you an introduction to generating a substring of a string in Python. Python is a great language to learn especially if you’re a beginner, as we discuss in this article. Read more 14 Apr 2022 Luke Hande How to Plot a Running Average in Python Using matplotlib Visualizing data is an essential part of data science. We show you how to plot running averages using matplotlib The running average, also known as the moving average or rolling mean, can help filter out the noise and create a smooth curve from time-series data. It can also help highlight different seasonal cycles in time-series data. This is a very common tool used in many fields from physics to environmental science and finance. Read more 29 Mar 2022 Luke Hande How to Check Multiple Conditions in a Python if statement Conditional statements are commands for handling decisions, which makes them a fundamental programming concept. They help you selectively execute certain parts of your program if some condition is met. In this article, we’ll tell you all you need to know about using multiple conditional statements in Python. And we’ll show you plenty of examples to demonstrate the mechanics of how it all works. Python has a simple and clear syntax, meaning the code is easy to read and interpret. Read more 15 Mar 2022 Luke Hande An Introduction to NumPy in Python NumPy makes working with arrays easy. If you work with Python, it pays to know some basics of Python NumPy. It is incredibly useful for working with arrays since it is very fast and efficient. It also contains many methods to make manipulating and performing numerical operations on arrays simple. There are many data structures in Python, including lists, dictionaries, Pandas DataFrames, and of course NumPy arrays. Each has its strengths, and knowing when to use one or the other can save time and effort in writing your programs. Read more 24 Feb 2022 Luke Hande How to Visualize Sound in Python There’s a lot of music and voice data out there. There are also interesting applications to go with them. We show you how to visualize sound in Python. The analysis of audio data has become ever more relevant in recent times. Popular virtual assistant products have been released by major technology companies, and these products are becoming more common in smartphones and homes around the world. They are largely developed on top of models that analyze voice data and extract information from it. Read more 22 Feb 2022 Luke Hande Object Serialization in Python Serialization is a useful technique for saving complex objects. In this article, we give you an introduction to object serialization in Python and explain why it is important. Serialization is essentially a way of storing data or objects and is a useful technique for saving complex objects. It’s the process of converting an object into a byte stream that can be stored, for example in memory or to a file. Read more 10 Feb 2022 Luke Hande Pillow: Basic Picture Manipulation in Python In this article, we provide an introduction to the Python Pillow module. It is useful to have some experience in image processing, as it is a foundation for various applications: post-processing photographs automatically, generating thumbnails in Python for online content, and pre-processing images for machine learning, among others. The Python Pillow module is a fork of the Python Image Library (PIL). Pillow needs to be installed by the user. The easiest way to do this is with pip. Read more 25 Jan 2022 Luke Hande A Complete Guide to the Python print() Function Let’s explore the Python print() function in detail with some examples. There is more to it than you realize! There’s a reasonable chance one of your first encounters with Python included print(), possibly in the form of a “Hello, World!” program. The Python print() function is a basic one you can understand and start using very quickly. But there’s more to it than meets the eye. In this article, we explore this function in detail by explaining how all the arguments work and showing you some examples. Read more 18 Jan 2022 Luke Hande How to Pretty-Print Tables in Python Do you want to make your tabular data look nice in Python? There are some useful libraries to get the job done. In this article, we'll show you some helpful libraries to print and format a table in Python quickly, easily, and in a visually appealing way – that is, pretty printing. With little effort, your tables will be ready for an online publication, an analytics report, or a scientific paper. Read more 16 Dec 2021 Luke Hande How to End Loops in Python Knowing how to exit from a loop properly is an important skill. Read on to find out the tools you need to control your loops. In this article, we'll show you some different ways to terminate a loop in Python. This may seem a little trivial at first, but there are some important concepts to understand about control statements. We'll also introduce some lesser-known ways to end loops in Python to give you tools for greater control over how your programs are executed. Read more «« « 1 2 3 4 5 » »»