Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Python
20.1k+ articles
AI-ML-DS
5.4k+ articles
Python-numpy
1.3k+ articles
python
1.1k+ articles
python-list
410+ articles
python-dict
240+ articles
Python numpy-ndarray
110+ articles
Python numpy-Matrix Function
98 articles
Numpy
72 articles
Python numpy-Basics
6 articles
Python numpy-arrayCreation
39 posts
Popular Articles
Recent Articles
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 s
...read more
Python
Picked
Python numpy-Basics
Python numpy-ndarray
Python numpy-arrayCreation
Python numpy-Indexing
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 i
...read more
Python
Python-numpy
Picked
Python numpy-arrayCreation
Python numpy-Matrix Function
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.
...read more
Python
Python-numpy
Python numpy-arrayCreation
Similar Topics
Python
20.1k+ articles
AI-ML-DS
5.4k+ articles
Python-numpy
1.3k+ articles
python
1.1k+ articles
python-list
410+ articles
python-dict
240+ articles
Python numpy-ndarray
110+ articles
Python numpy-Matrix Function
98+ articles
Numpy
72+ articles
Python numpy-Basics
6+ articles
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
...read more
Python
Python-numpy
Python numpy-arrayCreation
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)
...read more
Python
Python-numpy
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 NumP
...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 Num
...read more
Python
Python-numpy
python-dict
Python numpy-arrayCreation
numpy.asarray() in Python
Last Updated: 12 November 2021
numpy.asarray()function is used when we want to convert input to an array. Input can be lists, lists of tuples, tuples, tuples of tuples, tu
...read more
Python
Python-numpy
Python numpy-arrayCreation
numpy.zeros_like() in Python
Last Updated: 08 March 2024
This numpy method returns an array of given shape and type as given array, with zeros.Syntax: numpy.zeros_like(array, dtype = None, order =
...read more
Python
Python-numpy
Python numpy-arrayCreation
numpy.logspace() in Python
Last Updated: 05 April 2022
The numpy.logspace() function returns number spaces evenly w.r.t interval on a log scale.Syntax :numpy.logspace(start, stop,
...read more
Python
Python-numpy
Python numpy-arrayCreation
numpy.ones_like() in Python
Last Updated: 08 March 2024
The numpy.one_like() function returns an array of given shape and type as a given array, with ones.Syntax: numpy.ones_like(array, dtype = No
...read more
Python
Python-numpy
Python numpy-arrayCreation
numpy.full() in Python
Last Updated: 09 March 2022
numpy.full(shape, fill_value, dtype = None, order = 'C') : Return a new array with the same shape and type as a given array filled with a fi
...read more
Python
Python-numpy
Python numpy-arrayCreation
numpy.triu() in Python
Last Updated: 09 March 2022
numpy.triu(a, k = 0) : Returns copy of array with upper part of the triangle w.r.t kParameters : a : input arrayk : [int, optional, 0 by def
...read more
Python
Python-numpy
Python numpy-arrayCreation
numpy.diag() in Python
Last Updated: 09 March 2022
numpy.diag(a, k=0) : Extracts and construct a diagonal arrayParameters :a : array_like k : [int, optional, 0 by default] Diagonal w
...read more
Python
Python-numpy
Python numpy-arrayCreation
numpy.empty() in Python
Last Updated: 29 November 2018
numpy.empty(shape, dtype = float, order = 'C') : Return a new array of given shape and type, with random values.Parameters : - shape : Numbe
...read more
Python
Python-numpy
Python numpy-arrayCreation
First
1
2
3
>>
Last
First
1
2
3
>>
Last
First
1
2
3
>>
Last
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 !