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
How can I convert boolean values from np.diff() to the actual values
I have a numpy array of np.shape=(n,)
I am attempting to iterate through each value of the array and subtract the 2nd value from the 1st, then see if the difference is greater than 1.
So, array[1]-arr...
nukenine
Votes: 0
Answers: 1
AttributeError: 'numpy.int64' object has no attribute 'isnull'
I am trying to do EDA and running below code
data = data[~data.age.isnull()].copy()
Getting error as "AttributeError: 'numpy.int64' object has no attribute 'isnull'"
Please help me if anybod...
minal waman
Votes: 0
Answers: 0
np.where for 2d array, manipulate whole rows
I want to rebuild the following logic with numpy broadcasting function such as np.where: From a 2d array check per row if the first element satisfies a condition. If the condition is true then return ...
malwin
Votes: 0
Answers: 2