
Hi, there! The user of this post starts to use numpy for 1st time 2 months ago. ndarray, 'multiple row col segments selection capability 'needs improvement and addition. for example, Q = np.array([list(range(1,1001))]*1000) # create ndarray, 1000 row, 1000 col.(what's a more efficient way to make this?) Primary concern: How to get ONE array by selecting rows and cols from Q like in this description: select rows of row index: 0:2, 4:7, 101, and 156:989 ; and select columns of columns index: 0:3, 400:589, 678, 701:999. Looks like numpy lacks solution to solve and complete this common and reasonable task. How to make the change? Please let this user know. also see, https://stackoverflow.com/questions/73029711/python-numpy-select-rows-column...
participants (1)
-
chopni-sql@yahoo.com