Using the Numpy matrix.getA1 ()
method, we can get the ndarray of one dimension for a given matrix.
Syntax:
matrix.getA1()
Return: Return ndarray of size 1D as given matrix
Example # 1:
In this example we see that we can get a numpy array using the matrix.getA1 ()
.

Exit:
[6 2 3]
Example # 2:

Exit :
[1 2 3 4 5 6 7 8 9]
Pandas 1.x Cookbook: Practical recipes for scientific computing, time series analysis, and exploratory data analysis using Python, 2nd Edition....
05/09/2021
R for Everyone: Advanced Analytics and Graphics. ...
28/08/2021
Target knows. Apple Computer knows, too. So do LinkedIn, Netflix, Facebook, Twitter, Expedia, national and local political campaigns, and dozens of other organizations that all generate enormous eco...
10/07/2020
In Learn Python 3 the Hard Way PDF, you'll learn Python by working through 52 brilliantly crafted exercises. Read them. Enter your code exactly. (No copying and pasting!) Correct your mistakes. ...
05/09/2021