Leodanis Pozo Ramos
Leodanis is an industrial engineer who loves Python and software development. He is a self-taught Python programmer with 5+ years of experience building desktop applications with PyQt.
Calculating Variance and Standard Deviation in Python
Two closely related statistical measures will allow us to get an idea of the spread or dispersion of our data. The first measure is the variance, which measures how far from their mean the individual observations in our data are. The second is the standard deviation, which is the square...
Calculating Mean, Median, and Mode in Python
When we're trying to describe and summarize a sample of data, we probably start by finding the mean (or average), the median, and the mode of the data. These are central tendency measures and are often our first look at a dataset. In this tutorial, we'll learn how to find...
Unpacking in Python: Beyond Parallel Assignment
Unpacking in Python refers to an operation that consists of assigning an iterable of values to a tuple (or list) of variables in a single assignment statement. As a complement, the term packing can be used when we collect several values in a single variable using the iterable unpacking operator,...
Formatting Strings with the Python Template Class
Python Templates are used to substitute data into strings. With Templates, we gain a heavily customizable interface for string substitution (or string interpolation). Python already offers many ways to substitute strings, including the recently introduced f-Strings. While it is less common to substitute strings with Templates, its power lies in...