About 10,400,000 results
Open links in new tab
  1. What does -1 mean in numpy reshape? - Stack Overflow

    Sep 9, 2013 · numpy allow us to give one of new shape parameter as -1 (eg: (2,-1) or (-1,3) but not (-1, -1)). It simply means that it is an unknown dimension and we want numpy to figure it …

  2. How do I check which version of NumPy I'm using? - Stack Overflow

    Actually import numpy ; numpy.version.version . The lack of import numpy through me, an obvious newbie.

  3. python - How can I upgrade NumPy? - Stack Overflow

    When I installed OpenCV using Homebrew (brew), I got this problem whenever I run this command to test python -c "import cv2": RuntimeError: module compiled against API version 9 …

  4. How to remove specific elements in a numpy array

    Jun 12, 2012 · Note that numpy.delete() returns a new array since array scalars are immutable, similar to strings in Python, so each time a change is made to it, a new object is created.

  5. python - Is there a NumPy function to return the first index of ...

    Jan 11, 2009 · I know there is a method for a Python list to return the first index of something: >>> xs = [1, 2, 3] >>> xs.index (2) 1 Is there something like that for NumPy arrays?

  6. python - Index of element in NumPy array - Stack Overflow

    In Python we can get the index of a value in an array by using .index(). But with a NumPy array, when I try to do: decoding.index(i) I get: AttributeError: 'numpy.ndarray' object has no attribute '

  7. ImportError: numpy.core.multiarray failed to import

    I had the same "numpy.core.multiarray failed to import" issue, but it was because I had 1.6 installed for the version of Python I was using, even though I kept installing 1.8 and assumed it …

  8. NumPy: Comparing Elements in Two Arrays - Stack Overflow

    Dec 7, 2010 · Numpy has a set function numpy.setmember1d () that works on sorted and uniqued arrays and returns exactly the boolean array that you want. If the input arrays don't match the …

  9. Multiple conditions using 'or' in numpy array - Stack Overflow

    Multiple conditions using 'or' in numpy array Asked 13 years, 7 months ago Modified 6 years, 4 months ago Viewed 61k times

  10. python - numpy max vs amax vs maximum - Stack Overflow

    Nov 6, 2015 · 220 numpy has three different functions which seem like they can be used for the same things --- except that numpy.maximum can only be used element-wise, while …