Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Extracting elements from a list of size 1

I have a np array of this type. It is of size 1 but there are 90 numbers in it. Is there any way I can extract all those numbers and save them as a new 1D numpy array?

    Array of int64    list    (90,)  A = [7.065590000000000000e+05   7.221840000000000000e+05 
    7.378090000000000000e+05
    1.503434000000000000e+06
    ...
    2.381593400000000000e+07
    2.383155900000000000e+07
    2.384718400000000000e+07]

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Try this to get, e.g., the 49th element:

A[0][49]

To save the numbers in a 1D array, use this:

A = A[0]
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading