I wonder if there is a direct way to import the contents of a CSV file into a record array, much in the way th
What is the most efficient way to map a function over a numpy array? The way I've been doing it in my cur
In Python, I have an ndarray y that is printed as array([0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1]) I'm trying
What are the advantages of NumPy over regular Python lists? I have approximately 100 financial markets series
I know there is a method for a Python list to return the first index of something: >>> l = [1, 2, 3]
A numpy matrix can be reshaped into a vector using reshape function with parameter -1. But I don't know w
Suppose I have: test = numpy.array([[1, 2], [3, 4], [5, 6]]) test[i] gets me ith line of the array (eg [1,
NumPy proposes a way to get the index of the maximum value of an array via np.argmax. I would like a similar
I have two points in 3D: (xa, ya, za) (xb, yb, zb) And I want to calculate the distance: dist = sqrt((xa-xb)^
When I print a numpy array, I get a truncated representation, but I want the full array. Is there any way to
It is my understanding that the range() function, which is actually an object type in Python 3, generates its
In Python, how can I parse a numeric string like "545.2222" to its corresponding float value, 545.2222? Or par
I've got a huge list of date-times like this as strings: Jun 1 2005 1:33PM Aug 28 1999 12:00AM I&apos
I set an environment variable that I want to access in my Python application. How do I get its value?
How do you change the size of figure drawn with Matplotlib?