NumPy Tutorials

NumPy provides a comprehensive curriculum for numerical computing in Python. Our tutorials cover array operations, mathematical functions, and data processing techniques, suitable for both beginners and experienced data scientists. Through hands - on labs and real - world examples, you'll gain practical experience in efficient numerical computations. Our scientific Python playground allows you to experiment with NumPy functions in real - time.

NumPy Copies and Views

NumPy Copies and Views

In this lab, you will learn the basics of working with NumPy arrays. NumPy is a powerful library for numerical computing in Python. It provides efficient data structures and functions for performing mathematical operations on arrays.
NumPyPython
NumPy Broadcasting

NumPy Broadcasting

Broadcasting is a powerful feature in NumPy that allows arrays with different shapes to be used in arithmetic operations. It provides a way to vectorize array operations and improve computational efficiency. This lab will guide you through the basics of broadcasting in NumPy.
NumPyPython
NumPy Data Types

NumPy Data Types

This lab will provide a step-by-step guide to understanding the different data types available in NumPy, and how to modify an array's data type. NumPy supports a wide range of numerical types, including booleans, integers, floating point numbers, and complex numbers. Understanding these data types is important for performing various numerical computations and data analysis tasks using NumPy.
NumPyPython
NumPy IO Genfromtxt

NumPy IO Genfromtxt

In this lab, we will learn how to import data using the numpy.genfromtxt function. This function allows us to read tabular data from various sources and convert it into NumPy arrays. We will explore different options for defining the input, splitting the lines into columns, choosing columns, setting the data type, and tweaking the conversion.
NumPyPython
NumPy Indexing on ndarrays

NumPy Indexing on ndarrays

In this lab, we will explore the basics of indexing in NumPy. Indexing allows us to access and manipulate specific elements or subsets of elements in an array. Understanding how to use indexing effectively is crucial for working with arrays in NumPy.
NumPyPython
NumPy Array Creation

NumPy Array Creation

This lab provides a step-by-step guide on how to create arrays using NumPy, a fundamental library for array containers in Python. You will learn different methods for array creation, including converting Python sequences, using intrinsic NumPy array creation functions, replicating and joining existing arrays, and reading arrays from disk.
NumPyPython
NumPy Universal Functions

NumPy Universal Functions

In this lab, we will explore the basics of NumPy Universal Functions (ufuncs). Ufuncs are functions that operate on ndarrays in an element-by-element fashion, supporting array broadcasting, type casting, and other standard features. We will learn about the different methods of ufuncs, broadcasting rules, type casting rules, and how to override ufunc behavior.
NumPyPython
NumPy Structured Arrays

NumPy Structured Arrays

In this lab, we will learn about structured arrays in NumPy. Structured arrays are ndarrays whose datatype is a composition of simpler datatypes organized as a sequence of named fields. They are useful for working with structured data, such as tabular data, where each field represents a different attribute of the data.
NumPyPython
NumPy Einsum Function

NumPy Einsum Function

This challenge is designed to test your skills in using Numpy's einsum function, which allows you to perform various operations on multi-dimensional arrays. The challenge consists of several sub-challenges that gradually increase in difficulty.
NumPyPython
NumPy Einsum for Scientific Computing

NumPy Einsum for Scientific Computing

In scientific computing, it is often necessary to perform various linear algebra operations. NumPy is a popular Python library that provides efficient and convenient tools for performing such operations. One of the most powerful tools in NumPy is einsum, which stands for Einstein Summation.
NumPy
NumPy Math Games

NumPy Math Games

In this challenge, you will practice using the NumPy module in Python and work with NumPy arrays to perform common mathematical operations.
PythonNumPy
Online NumPy Playground

Online NumPy Playground

LabEx provides an Online NumPy Playground, an online environment that allows you to quickly set up a Python environment with NumPy pre-installed for numerical computing.
NumPy
Efficient NumPy Array Multiplication Operations

Efficient NumPy Array Multiplication Operations

NumPy is a powerful library for scientific computing in Python. One of the most important features of NumPy is its ability to perform various types of array multiplications efficiently.
NumPyPython
NumPy Slicing and Indexing

NumPy Slicing and Indexing

NumPy is a popular Python library used for scientific computing. It provides high-performance array operations and mathematical functions that are useful for numerical data analysis. In this lab, you will learn NumPy's slicing and indexing features.
PythonNumPy
NumPy Shape Manipulation

NumPy Shape Manipulation

In this lab, you will learn the NumPy shape manipulation functions that allow you to manipulate the shape of NumPy arrays.
NumPy
NumPy File IO

NumPy File IO

In this lab, you will learn how to use NumPy to read and write arrays to files. NumPy provides several functions for file input and output that make it easy to work with large datasets.
NumPyPython
Array Attributes and Dtype

Array Attributes and Dtype

This tutorial will explore NumPy array attributes, focusing on the dtype attribute. NumPy is a powerful library for numerical computing in Python, and the NumPy array is a core data structure for this library.
NumPyPython
NumPy Array Operations

NumPy Array Operations

NumPy is a Python library used for numerical computing. It is designed to work with arrays and matrices, making it a powerful tool for scientific computing. In this lab, you will learn the following three topics related to NumPy Array Operations:
NumPy
  • Prev
  • 1
  • 2
  • Next