Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Misc
8.8K+ articles
AI-ML-DS
4.7K+ articles
Python-numpy
1.3K+ articles
python
1.2K+ articles
python-dict
257+ articles
Numpy
81+ articles
Python numpy-arrayCreation
40 posts
Recent Articles
Popular Articles
NumPy Array Shape
Last Updated: 28 December 2023
The shape of an array can be defined as the number of elements in each dimension. Dimension is the number of indices or subscripts, that we require in order to specify an ...
read more
Python
Python-numpy
Python numpy-arrayCreation
How to convert a list and tuple into NumPy arrays?
Last Updated: 23 August 2023
In this article, let's discuss how to convert a list and tuple into arrays using NumPy. NumPy provides various methods to do the same using Python.Example:Input: [3, 4, 5,...
read more
Python
Python-numpy
Python numpy-arrayCreation
Ways to Convert a Python Dictionary to a NumPy Array
Last Updated: 01 February 2025
The task of converting a dictionary to a NumPy array involves transforming the dictionary’s key-value pairs into a format suitable for NumPy. In Python, there are differen...
read more
Python
Python-numpy
python-dict
Python numpy-arrayCreation
How to Copy NumPy array into another array?
Last Updated: 10 January 2024
Many times there is a need to copy one array to another. Numpy provides the facility to copy array using different methods. In thisCopy NumPy Array into Another ArrayThere...
read more
Python
Python-numpy
Python numpy-arrayCreation
Creating a one-dimensional NumPy array
Last Updated: 27 January 2025
One-dimensional array contains elements only in one dimension. In other words, the shape of the NumPy array should contain only one value in the tuple. We can create a 1-D...
read more
Python
Python-numpy
Python numpy-arrayCreation
python
How to create a NumPy 1D-array with equally spaced numbers in an interval?
Last Updated: 28 December 2023
At times, we need to make arrays of different types like in AP(equally spaced series of numbers), GP(exponentially spaced series of numbers), or HP(reciprocally spaced ser...
read more
Python
Python-numpy
Python numpy-arrayCreation
How to build an array of all combinations of two NumPy arrays?
Last Updated: 25 April 2025
Our task is to build an array containing all possible combinations of elements from two NumPy arrays. To achieve this, we can utilize the np.meshgrid() function, which cre...
read more
Python
Python-numpy
Python numpy-arrayCreation
numpy.pad() function in Python
Last Updated: 01 October 2020
numpy.pad() function is used to pad the Numpy arrays. Sometimes there is a need to perform padding in Numpy arrays, then numPy.pad() function is used. The function returns...
read more
Python
Python-numpy
Python numpy-arrayCreation
How to create an empty and a full NumPy array?
Last Updated: 28 January 2025
Creating arrays is a basic operation in NumPy. Empty array: This array isn’t initialized with any specific values. It’s like a blank page, ready to be filled with data lat...
read more
Python
Python-numpy
Python numpy-arrayCreation
Numpy
AI-ML-DS
How to generate 2-D Gaussian array using NumPy?
Last Updated: 19 August 2022
In this article, let us discuss how to generate a 2-D Gaussian array using NumPy. To create a 2 D Gaussian array using the Numpy python module.Functions used:numpy.meshgri...
read more
Python
Python-numpy
Python numpy-arrayCreation
Print full Numpy array without truncation
Last Updated: 29 April 2025
The goal here is to print the full NumPy array without truncation, meaning all elements should be displayed regardless of the array's size. By default, NumPy truncates lar...
read more
Python
Python-numpy
Python numpy-arrayCreation
How to create a constant matrix in Python with NumPy?
Last Updated: 17 December 2020
A matrix represents a collection of numbers arranged in the order of rows and columns. It is necessary to enclose the elements of a matrix in parentheses or brackets. A co...
read more
Python
Picked
Python-numpy
Python numpy-arrayCreation
Python numpy-Matrix Function
How to use NumPy where() with multiple conditions in Python ?
Last Updated: 05 April 2021
In Python, NumPy has a number of library functions to create the array and where is one of them to create an array from the satisfied conditions of another array. The nump...
read more
Python
Picked
Python-numpy
Python numpy-arrayCreation
How to delete multiple rows of NumPy array ?
Last Updated: 09 January 2023
NumPy is the Python library that is used for working with arrays. In Python there are lists which serve the purpose of arrays but they are slow. Therefore, NumPy is there ...
read more
Python
Picked
Python numpy-Basics
Python numpy-ndarray
Python numpy-arrayCreation
Python numpy-Indexing
How to Create a Sequence of Linearly Increasing Values with Numpy Arrange?
Last Updated: 16 August 2022
In this article, we are going to create a sequence of linearly increasing values with Numpy arrange() function. Getting StartedBy using arrange() function, we can create a...
read more
Python
Picked
Python-numpy
Python numpy-arrayCreation
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !