TransWikia.com

Making (500,) array (500,20)

Data Science Asked by user110766 on February 17, 2021

I have this array (500,):
https://pastebin.pl/view/adeccfa1

Want to make it look like this one (500,20):
https://pastebin.pl/view/6650ad6b

How do I do it?

One Answer

(500,) stands for a array with 500 values,

array (500,20), stands for an array which contains 500 list and each list containing 20 elements.

Examples:

array(1,2,3,4) ----------------------> (4,)

array([1,2],[3,4],[5,6])-------------> (3,2)

Answered by Mohit Nagarkoti on February 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP