A Quick Introduction to Numpy Random Normal

An image normally distributed data created with np.random.normal in Python.

This tutorial will cover the Numpy random normal function (AKA, np.random.normal). If you’re doing any sort of statistics or data science in Python, you’ll often need to work with random numbers. And in particular, you’ll often need to work with normally distributed numbers. The Numpy random normal function generates a sample of numbers drawn from … Read more

How to Use Pandas Get Dummies in Python

An image that shows how the Pandas get dummies function creates dummy variables from categorical data, in Python.

In this tutorial, I’ll show you how to use the Pandas get dummies function to create dummy variables in Python. I’ll explain what the function does, explain the syntax of pd.get_dummies, and show you step-by-step examples. If you need something specific, just click on any of the following links. Table of Contents: Introduction Syntax Examples … Read more

How to Use the Pandas Astype Function in Python

A simple image that shows how the Pandas astype method changes the datatype of Pandas dataframes or Series objects.

In this tutorial, I’ll explain how to use the Pandas astype function to modify the datatype of Pandas dataframe columns and Pandas objects. I’ll explain what the technique does, explain the syntax, and show you step-by-step examples. If you need something specific, you can click on any of the following links. Table of Contents: Introduction … Read more

How to Use the Numpy Maximum Function

An image that shows how the Numpy maximum function computes the element-wise maximum of two Numpy arrays.

In this tutorial, I’ll explain how to use the Numpy maximum function to compute the element-wise maxima of two Numpy arrays. I’ll explain the syntax of np.maximum, how the function works, and how to use it. If you need something specific, just click on any of the following links. Table of Contents: Introduction to Numpy … Read more

7 Tips to Help you Learn Numpy Quickly

Over and over again, I emphasize the importance of data manipulation. Data manipulation is the foundation for almost everything else in data science and machine learning. So to be a great data scientist, one of your first goals should be to master data manipulation tools. And if you’re doing data manipulation in Python, that means … Read more

How to Use the Numpy Multiply Function

An image that shows using Numpy multiply to compute the element-wise product of two Numpy arrays.

In this tutorial, I’ll explain how to use the Numpy multiply function – AKA np.multiply – to multiply matrices together. I’ll explain the syntax of np.multiply, how the function works, and how to use it. If you need something specific, you can click on any of the following links. Table of Contents: Introduction to Numpy … Read more