# Recent questions tagged numpy

1 answer 3 views
Problem: I am not a mathematician, I just want to write a code that can find a center of multidimensional vectors. I tried many things to solve the problem but nothing worked. I keep getting the same problem: <lambda>() takes 1 positional argument but 2 were given.
1 answer 3 views
Problem: I have been trying to solve this problem, please help > Attributeerror: 'series' object has no attribute 'sort'
1 answer 13 views
Problem: Can anyone help me with this problem? > Attributeerror: 'tensor' object has no attribute 'numpy'
1 answer 3 views
Problem: Try to discover this >Integer scalar arrays can be converted to a scalar index
1 answer 3 views
Problem: Help me with this problem > How to get marginal distribution from joint distribution?
1 answer 2 views
Problem: Someone assist me please >How to find marginal distribution from joint distribution
1 answer 3 views
Problem: How to find equilibrium points of a differential equation?
1 answer 2 views
Problem: Is there someone who knows how to resolve this issue? >Typeerror: object of type 'int64' is not json serializable.
1 answer 4 views
Problem: I'm trying to figure out a solution, need help >List indices must be integers or slices, not numpy.float64.
1 answer 5 views
Problem: I'm not sure how I got this >Linalgerror: last 2 dimensions of the array must be square.
1 answer 7 views
Problem: Does anyone grasp the problem? >Indexerror: index 2 is out of bounds for axis 0 with size 2
1 answer 8 views
Problem: Can anyone help me? > Boolean index did not match indexed array along dimension 0.
1 answer 3 views
Problem: Is there any easier way to solve this? > Fatal error: numpy/arrayobject.h: no such file or directory
1 vote
1 answer 5 views
Problem: I&rsquo;m unable to plot graphs in Python even after installing Python 2.5.4, Numpy 1.5.0 win32, Matplotlib 1.0.0 win32, pywin32 218. I&rsquo;m getting this error: import pylab File "C:\Python25\lib\site-packages\pylab.py", line 1, ... in <module> from matplotlib._path import affine_transform ImportError: DLL load failed: The specified module could not be found. How to solve this error?
1 answer 7 views
Problem: I want to write a function that randomly picks elements from a training set, based on the bin probabilities provided. I divide the set indices to 11 bins, then create custom probabilities for them. bin_probs = [0.5, 0.3, 0.15, 0.04, 0.0025, 0.0025, 0.001, 0.001, ... It is 1-D, it is integer, and it is scalar. What am I missing? Note : I tried to pass indices with astype(int). Same error.
1 answer 7 views
Problem: I want to calculate the eigenvalues and eigenvectors w, v = numpy.linalg.eig(a) How can I do this?