python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
combining non-uniform size 2D arrays into a 3D array in python?
I've searched on stackoverflow but could not find an answer to this specific question. Sorry if it is a naive question, I am a newbie to python. I have three 2d arrays of shapes
Shape of arr_X = (1,8...
Alan22
Votes: 0
Answers: 0
Slicing multi-dimensional array with another array
edited with a clearer example, and included solution
I'd like to slice an arbitrary dimensional array, where I pin the first n dimensions and keep the remaining dimensions. In addition, I'd like to be...
Steve Heim
Votes: 0
Answers: 2
NumPy - Updating all values in array, except for slice
I have the following array:
arr = np.array([[1, 1, 1, 1, 1, 1],
[2, 0, 0, 0, 0, 2],
[3, 0, 0, 0, 0, 3],
[4, 4, 4, 4, 4, 4]])
inverse_slice = arr[1:3, 1:5]
I want ...
Rudy
Votes: 0
Answers: 2
Resize a numpy array to 2048 rows
I am looking for a way to resize NumPy arrays with 3 columns and different rows (e.g. number of rows = 3000, 5234, 2650,...)
What I am trying to do is set the number of rows to 2048 while still having...
Philipp
Votes: 0
Answers: 0