Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
how to create 2D Array in NumPy?
Home
NumPy
how to create 2D Array in NumPy?
+2
votes
asked
Jul 3, 2021
in
NumPy
by
sharadyadav1986
how to create 2D Array in NumPy?
numpy-array
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 3, 2021
by
sharadyadav1986
create 2D Array in NumPy
num2=[[1,2,3],[4,5,6]]
num2 = np.array(num2)
print(“\n2d array : “,num2)
Related questions
+2
votes
Q: how to identified last number of numpy array?
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
numpy-array
+2
votes
Q: how to identified datatyp for numpy array?
asked
Jul 3, 2021
in
NumPy
by
sharadyadav1986
numpy-array
0
votes
Q: Which of the following function is used to covert NumPy array to Tensor?
asked
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
numpy-array
0
votes
Q: Which of the following is used to convert NumPy array to Tensor?
asked
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
numpy-array
0
votes
Q: Which of the following function is used to convert NumPy array to Tensor?
asked
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
numpy-array
0
votes
Q: Write a program in Python for getting indices of N maximum values in a NumPy array.
asked
Oct 12, 2021
in
Python
by
rajeshsharma
n-maximum-value
numpy-array
Python-questions-answers
+2
votes
Q: how to use shape for 2D Array ?
asked
Jul 3, 2021
in
NumPy
by
sharadyadav1986
shape-2d-array
+1
vote
Q: What is 2d indexing? define one ex : num = np.array([1,2,3],[4,5,6],[7,8,9])
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
2d-indexing
+1
vote
Q: use numpy to generate array of 25 random numbers sampled from a standard normal distribution
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
generate-array
+2
votes
Q: 1D Slicing with above numpy array..print[5,15]
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
1d-slicing
...