Skip to content

Numpy

NumPy Tile Arrange Arrays Cover Image

NumPy Tile to Arrange Arrays

In this tutorial, you’ll learn how to use the NumPy tile function to arrange arrays using Python. The NumPy tile() function takes an array as an input and creates a new array by repeating the input array in different ways.

Different Ways to Concatenate NumPy Arrays in Python Cover Image

Different Ways to Concatenate NumPy Arrays in Python

In this tutorial, you’ll learn how to concatenate NumPy arrays in Python. Knowing how to work with NumPy arrays is an important skill as you progress in data science in Python. Because NumPy arrays can be 1-dimensional or 2-dimensional, it’s

Numpy zeros matrix cover image

NumPy Zeros: Create Zero Arrays and Matrix in NumPy

In this tutorial, you’ll learn how to generate a zero matrix using the NumPy zeros function. Zero arrays and matrices have special purposes in machine learning. Being able to create them efficiently will allow you to become more capable in

Python Find List Index of All Occurences of an Element Cover Image

Python: Find List Index of All Occurrences of an Element

In this tutorial, you’ll learn how to use Python to find the list index of all occurrences of an element. In many cases, Python makes it simple to find the first index of an element in a list. However, because

Pi in Python Numpy Math Cover Image

Using Pi in Python (NumPy and Math)

In this tutorial, you’ll learn how to get and use the value of pi in Python. We’ll explore a number of different ways in which you can get and store the value of pi in Python. First, we’ll look at

How to calculate MAE in Python Cover Image

How to Calculate Mean Absolute Error (MAE) in Python

In this tutorial, you’ll learn how to calculate the mean absolute error, or MAE, in Python. The mean absolute error can help measure the accuracy of a given machine learning model. The MAE can be a good complement or alternative to

How to Calculate MAPE in Python Cover Image

How to Calculate MAPE in Python

In this tutorial, you’ll learn how to use Python to calculate the MAPE, or the mean absolute percentage error. This error is often used to measure the accuracy of machine learning models. By the end of this tutorial, you’ll have

NumPy Random Normal to Create Normal Distributions Cover Image

Numpy Normal (Gaussian) Distribution (Numpy Random Normal)

In this tutorial, you’ll learn how to use the Numpy random.normal function to create normal (or Gaussian) distributions. The functions provides you with tools that allow you create distributions with specific means and standard distributions. Additionally, you can create distributions

NumPy for Data Science in Python Cover Image

NumPy for Data Science in Python

In this tutorial, you’ll learn how to use Python’s NumPy library for data science. You’ll learn why the library matters in the realm of data science and how it’s foundational for many other libraries. You’ll learn about the NumPy ndarray

Working with External Libraries in Python Cover Image

Working with External Libraries in Python

In this tutorial, you’ll learn how to work with external libraries in Python. By the end of this tutorial, you’ll have learned why external libraries are essential to your Python programming journey, and how to install and import external libraries.

Calculate the Pearson Correlation Coefficient in Python Cover Image

Calculate the Pearson Correlation Coefficient in Python

In this tutorial, you’ll learn how to calculate the Pearson Correlation Coefficient in Python. The tutorial will cover a brief recap of what the Pearson correlation coefficient is, how to calculate it with SciPy and how to calculate it for

Python Multiply Lists Cover Image

Python: Multiply Lists (6 Different Ways)

Learn how to use Python to multiply lists, including multiplying lists by a number and multiplying lists element-wise using numpy.