NumPy Tutorial
NumPy Tutorial
Dark mode
Dark code
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP BOOTSTRAP HOW TO W3.CSS C C++ C# REACT R JQUERY DJANGO
NumPy HOME
NumPy Intro
NumPy Getting Started
NumPy Tutorial
NumPy Creating Arrays
NumPy Array Indexing
NumPy Array Slicing
NumPy Data Types ❮ Home Next ❯
NumPy Copy vs View
NumPy Array Shape
NumPy Array Reshape
[+:
NumPy Array Iterating NumPy is a Python library.
NumPy Array Join
NumPy is used for working with arrays.
NumPy Array Split
NumPy Array Search NumPy is short for "Numerical Python".
NumPy Array Sort
NumPy Array Filter
NumPy Random
Learning by Reading
Random Intro
Data Distribution We have created 43 tutorial pages for you to learn more about NumPy.
Random Permutation
Starting with a basic introduction and ends up with creating and plotting random data sets, and working with NumPy functions:
Seaborn Module
Normal Distribution
Binomial Distribution Basic Random ufunc
Introduction Random Intro ufunc Intro
COLOR PICKER
Copy vs View Poisson Dist. Products
ADVERTISEMENT
Learning by Exercises
ADVERTISEMENT
NumPy Exercises
Exercise:
Insert the correct method for creating a NumPy array.
Submit Answer »
Learning by Examples
In our "Try it Yourself" editor, you can use the NumPy module, and modify the code to see the result.
import numpy as np
print(arr)
print(type(arr))
Try it Yourself »
ADVERTISEMENT
ADVERTISEMENT
FORUM | ABOUT
W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we
cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.