# Numpy

## 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.… Read More »NumPy Tile to Arrange Arrays

## 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… Read More »Different Ways to Concatenate NumPy Arrays in Python

## 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… Read More »NumPy Zeros: Create Zero Arrays and Matrix in NumPy

## 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… Read More »Python: Find List Index of All Occurrences of an Element

## 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… Read More »Using Pi in Python (NumPy and Math)

## 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… Read More »How to Calculate Mean Absolute Error (MAE) in Python

## 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… Read More »How to Calculate MAPE in Python

## 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… Read More »Numpy Normal (Gaussian) Distribution (Numpy Random Normal)

## 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… Read More »NumPy for Data Science in Python

## 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.… Read More »Working with External Libraries in Python

## 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… Read More »Calculate the Pearson Correlation Coefficient in Python

## 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.